Exclude Category ID’s not working
I have set the 2 category IDs I would like to exclude from my blog roll (and saved changes). See screen shot. But, posts from those categories continue to display in the blog. The blog url:
On this page, the weather info test post, category 16, inclement weather, should not display.
What did I miss?
HI, can you try this and let me know if it works for you.
Go to Appearance → Editor → home.php and find this line:
and change to:
Thank you, but no luck. The post category still appears in the blog roll. Anything else I can try?
Is the /news URL a category page or your blog home? The exclude categories should only work on your blog home. Can you explain how you have your blog/news section set up? Feel free to PM me your wp-admin details if you’d like and I’ll be glad to take a closer look.
Thank you Casey. The /news url is the blog home. In the Reading Settings page, the “front page displays” are set to “a static page” and the Posts page = News.
The category IDs I would like to exclude from the /news page are 16 and 19. I have one post for each category, but they are set as “draft” so they won’t appear on the News page. Feel free to change them to Published to run some tests. I will PM you with wp-admin details so you can take a look.
I appreciate it.
PM received, thanks. There was a stray semicolon in my previous post. It looks like my forum was trying to convert &cat; to an HTML entity. To clarify,
You should be good to go now. Thanks for your patience.