Archived topic
Show specific post categories on home page
3 replies · Started by Stratos on July 14, 2020
I have purchased the GP Premium yesterday and I have a question regarding the Home page layout.
In the previous theme I was using, in the Home page only, under the navigation bar and before the main post previews there was a row that was displaying links (it was a preview of the featured image each post was using) for the last three posts I had made from a specific category that I could choose from. I could choose how many links I wanted (I was using three in a single line)
So while all my new posts would appear normally in the home page a specific category would additionally appear in this special row.
Is there anything similar that I could do with the GP Premium theme?
Thanks a lot for an excellent theme!
Stratos
Hi there,
Welcome to GP Premium - glad to hear you're enjoying it.
it would require a plugin to do that.
I would recommend the WP Show Posts plugin:
https://wordpress.org/plugins/wp-show-posts/
With it you can create your own list etc.
And it can be displayed below your navigation using a hook element:
https://docs.generatepress.com/article/hooks-element-overview/
Add your content like so:
<div class="grid-container">
Add your WP Show Posts shortcode here
</div>
Then select the after_header hook.
Check: Execute Shortcodes
Set Display Rules to Front Page.
The plugin and your directions worked amazingly.
Thank you very much for the excellent support! You guys are the best!
Stratos
Glad to be of help