I had just taken over this page from web developer and I am a bit of WordPress newbie.
I created a category for posts so we can have posts broken out by category and have one page for each category.
I created two test posts for the category and when I go to the category page I get "No Posts Found" error. Can anyone point me in the right direction here?
I had just taken over this page from web developer and I am a bit of WordPress newbie.
I created a category for posts so we can have posts broken out by category and have one page for each category.
I created two test posts for the category and when I go to the category page I get "No Posts Found" error. Can anyone point me in the right direction here?
A few things to check:
Did you publish the posts publicly? If you're publishing in one browser and viewing in another, and you publish a post as a "draft" or "private," then you won't be able to see the post in the other browser.
Are you cached? Try viewing in another browser, and also empty any server-side caches that may be on (check in your plugins and with your web host - sometimes there's a plugin screen where you need to dump the site cache; other times the hosting CPanel has a cache flush option).
Switch to a default WP theme, like Twenty Seventeen, and see if you still have the issue. If there's no issue in the default theme, then you'll need to check your theme files. If there's also an issue in the default theme, there may be a problem with your permalinks - go to Settings > Permalinks and see what they are set to for categories. Perhaps the URLs you're using aren't the right URLs to access the categories.
Once you've checked these, post back and hopefully we can get you further down the troubleshooting path.
archive.php
code here with us. – CodeMascot Commented May 23, 2017 at 5:49