How to fix adding new category in WordPress not working

Wordpress - adding post category requires page refresh to show up

How to fix adding new category in WordPress not working

WordPress – adding post category requires page refresh to show up.

You may have faced this problem before. As a WordPress user its a bit challenging to troubleshoot issues that has to do with syntax.

Here is a new issue many has looked for solution to no avail.

The problem: A user submitted issues seen below.

When adding a new category, (both in a regular post or custom post) the new category doesn’t appear, I have to actually refresh the page in order for it to show up. If I am writing a new post that means I need to save / publish a post before I can refresh the page. This is a bit annoying as normally I am used to WordPress adding the new category and updating the page asynchronously so I can then choose the new category straight away.

The Solution on how to fix WordPress category issue

In order to fix this issue on your WordPress Read below steps.

  1. Go straight into your WordPress function file normally called function.php
  2. Copy all the codes and place in code editor
  3. Remove all the spaces in the codes
  4. That’s all and your problem is solved.

This is one of the hardest thing about code debugging. If you didn’t know its all about the spacing in your WordPress function file you will wander with no result. If you find this piece helpful please click on YouTube icon on the header and subscribe to our channel.

Leave a Reply

Your email address will not be published.