Don't show posts from one category on homepage
-
Hi,
I have a wordpress.com blog. I want all my posts that are in a particular category to not show on the homepage but to show on a different page. Can this be done?
Any help would be gratefully appreciated.
Thankyou
The blog I need help with is: (visible only to logged in users)
-
I want all my posts that are in a particular category to not show on the homepage
Hi there,
Which category would you like to do this for?
-
Hi Gary,
I haven’t made the category written any posts that would be going in that category just yet because I don’t want those posts to appear on the front page. Is there a way to do this? Alternatively, if there’s a ‘next best option’, then I’d love to hear that as well just so that I know what kind of things I can and can’t do.
Thanks
-
It can be done with css, but the css requires the category id – and we can’t provide that until the posts exist.
-
For example, you could add custom css to your site to hide posts in the “adcopy testing” category from the home page.:
.home .category-adcopy-testing { display: none; }You could then add a link in your menu to the “adcopy testing” category archive page, which would only show posts from that category, like this:
https://rmkdigital.com/category/adcopy-testing/
But you’d have to change the css based on the category you want to hide.
-
Thankyou for your help Gary,
I’ve managed to follow your post up until adding the CSS to remove the adcopy testing category from the home page but in the example link that you sent, I noticed that it mentions “Category: Ad copy testing” at the top. Is it possible to remove that?
Regards
- The topic ‘Don't show posts from one category on homepage’ is closed to new replies.