How to set the home page to only show posts from a specific category?
-
Hi,
I’ve been having trouble setting my homepage. As of now, it shows all of my posts. What I want to happen is for posts only for a specific category to show. How do I do that?
I’ve tried creating a separate page set as a block post but it doesn’t look the same way my usual homepage does. Help!The blog I need help with is: (visible only to logged in users)
-
Hi,
If you choose to display your latest posts on the homepage at Customize > Homepage Settings, then all posts will be displayed there. In order to display only posts of a certain category, the first step would be to assign a static page as the homepage (at Homepage Settings). Then you may insert a Blog Posts Block into that page, and limit the displayed posts to a certain category as described in Display Settings section of the Blog Posts Block support page.
-
As I’ve mentioned, I already tried doing the block posts. Though it achieves the purpose, it’s not very aesthetic to look at.
For reference, my blog is lcolmwrites.wordpress.com. What I want to happen is for my homepage to look exactly like this https://lcolmwrites.wordpress.com/category/short-stories/ without the “Category: Short Stories”.
Is there a way for me to make this happen? Context: My theme is Baskerville 2.
-
As I’ve mentioned, I already tried doing the block posts.
It’s not obvious that that phrase “page set as a block post” in the OP refers to a page with a Block Posts Block in it, because a page can’t be set as a post, but thanks for that info.
It might not be possible to obtain the exact style of the Baskerville 2 blog and category pages in a static page. I’m not aware of a way to accomplish that, but I’ll call for staff attention in case they may have a suggestion.
-
Hi,
It might not be possible to obtain the exact style of the Baskerville 2 blog and category pages in a static page.
That’s correct. Unfortunately, there’s not yet a way to mimick the Baskerville layout with just one category of posts, except to use the category page.
If you wanted to hide the title and upgraded to a plan with CSS, you could use this to hide that page title:
.category .page-title { display: none; }
- The topic ‘How to set the home page to only show posts from a specific category?’ is closed to new replies.