I have built a new theme on the latest version of WordPress (Version 3.3.1 as of this post).
When adding a new category, (both in a regular post or custom post) the new category doesnt 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.
Has anyone had this happen to them before? I have kept my theme really light at the moment so not sure what could be causing it. Pretty much all my functions code is for the custom post types I have been making, but the issue is present for standard posts too.
Anyone got any ideas?
EDIT FIXED
I just needed to clean up my functions file by removing some whitespace
Just in case anyone else runs into this problem, one of the main reasons stuff like this could go wrong is because of white space before and after the opening and closing PHP tags, respectively, in your functions.php file of your theme.
More information can be found in the WordPress FAQ and troubleshooting section.
I experienced this issue today, and white space in PHP files was the problem.
However, I want to share the steps I took to resolve the issue:
Hopefully, these debug steps provide some inspiration to other people suffering the same problem. As far as I know, WordPress does not offer any easy way to identify the cause of this problem (i.e. it does not identify which file has bad spaces in it).