Archived topic
Create separate blog page with same layout of homepage displaying latest posts
5 replies · Started by Davide on September 10, 2021
Hi there,
my homepage is set to display the latest posts. In addition to that I want to create a separate blog page displaying posts from a specific category. I would like it to have the same design of the homepage, without fuzzling too much with CSS or manually setting the design. Is there a way to achieve this, maybe with a query loop inheriting the CSS from the homepage or something like that? I tried Tom's Show Posts plugin but the result isn't quite satisfactory (first attached image is the homepage, second attached image is the blog page generated with the plugin).
Thanks!
Hi there,
I want to create a separate blog page displaying posts from a specific category.
WordPress creates a category archive for each category automatically and that page should follow the exact same layout as the blog page.
Let me know if this helps :)
Hi Leo,
thanks, this is indeed what I am doing so far.
But I would like to avoid this method for a few reasons, e.g. the possibility to customise the page not displaying the sidebar, of having and url like mysite.com/food rather than mysite.com/category/food, etc.
the possibility to customise the page not displaying the sidebar
This is something we can use a filter for:
https://docs.generatepress.com/article/layout-element-overview/#sidebar
As for the URL, I believe you can modify that in WP permalink settings:
https://wordpress.org/support/article/settings-permalinks-screen/
Worth checking with WordPress support team.
It's not possible to apply GP's CSS to WPSP automatically, unfortunately.
Thanks! It's a pity there's no implemented way to do this in GP - something like Create a new page with "Blog" template - but I'll play around with your suggestions :)
No problem :)