This post was most recently updated on December 10th, 2020.3 min read.
This post describes a couple of useful solutions or workarounds for an awkward situation, where you can’t manage the metadata of your articles on WordPress. This hampers greatly your ability to organize your posts – and if you’re using WordPress like I’m using, also lowers the visibility of your new articles (I’m using the tags as hashtags when sharing to social channels)!
We don’t want that. But what’s actually causing it?
Description of the issue
So you know that little panel on the right hand side in Gutenberg, that contains information about your Tags and Categories for each post? A bit like shown below:
Most likely, something’s just blocking access to the REST API that’s used to return Tags and Categories, so Gutenberg just doesn’t know what to show – so it doesn’t show anything.
Validate this by trying to navigate to the address below (replace domain with yours):
You should see something like this below:
If, instead, you get an error about access being denied, or even a plug-in telling you to bugger off (at least iThemes Security, WP Cerber, different caching plug-ins and probably Speed Booster as well can disable access to the APIs), you’re one step closer to resolving the issue!
I’ve got a few different ones! Let’s start with the obvious and continue on to less obvious ones.
Sort out your plug-ins
Okay – I can’t tell you exactly, which plug-in might do what, but I can point you to the right direction by showing an example. A plug-in called WP Cerber makes it possible for you to disable WordPress REST API – and if you do, and do not enable an exception for your logged in users, one of the things that will stop working is your Tags and Categories panel in Gutenberg!
That said, there’s a whole lot of different plug-ins, that might disable REST API for optimization or security purposes. See what you’re using, and take a look at their settings!
If the issue still persists, check out the next tip below:
Fix your cache!
If you’re also using a performance improvement plug-in for WordPress (such as Speed Booster or a caching plug-in), or you’re using any of the CDN services (such as CloudFlare), they could also mess up your APIs.
Now, there’s a lot of different plug-ins that could do this, and I don’t know how to instruct you to fix each and every one of them – but I definitely know how to fix perhaps the coolest one, CloudFlare! :)
CloudFlare is a CDN service one can use to offload a lot of the assets of the website to different nodes around the world, to make sure your website’s different components are served by hardware that knows what it’s doing and has quick network connectivity to your users.
They didn’t pay me to write that, but I appreciate their service, so you can read that as a recommendation of sorts.
Anyway, they offer a couple of extra switches for additional security – and perhaps you’ve enabled something that blocks access to your APIs. Might be difficult to sort that out – but luckily, there’s a simple shortcut! Simply log in to your CloudFlare control panel, navigate to Page Rules, and add the address https://yourwebsite.net/wp-json/wp/v2/taxonomies with the settings below:
- Auto Minify: Off
- Security Level: Essentially Off
- Disable Performance
See an example below:
I suppose you could even make it a wildcard URL to match all of your APIs… But I got mine working with the one above, so I was good with that.
Workaround: Use “Quick edit” -mode to fix the tags & categories in the meantime
In case you weren’t able to resolve the reason of this issue, or you had to forward the instructions to someone else, there’s still a workaround which enables you to modify the tags and categories for your posts while you’re waiting for an actual solution!
You can always navigate to your “All Posts” view, and click “Quick Edit” on an article – and that’ll bring up a new form (like below) that enables you to set the categories and tags for the article. Not super user-friendly, and kinda antiquated – but works!
And this form opens up:
It’s a bit cumbersome, but could be worse.
For more info and some background, see these:
- How to configure your Smart Home wifi devices that fail to connect due to a weak wifi signal? - October 4, 2022
- How to import an Azure DevOps Git repository… From another Azure DevOps organization? - September 27, 2022
- How to fix NU3028 and NU3037 errors in Azure DevOps builds? - September 20, 2022