- This topic has 10 replies, 2 voices, and was last updated 6 months, 4 weeks ago by
David.
-
AuthorPosts
-
August 22, 2022 at 7:02 am #2320032
Erol
Hi Team,
Is it possible to create a Content Template Block with the first post looking like featured (large) on the left hand side and 3 smaller ones on the right hand side like this image https://websmith.cc/content-template.png
Mny thanks.
August 22, 2022 at 7:43 am #2320076David
StaffCustomer SupportHi there,
if you want it on a Static Pagge then you can use the GenerateBlocks plugin Query Loop Block.
And we have some pre-made patterns that could be re-purposed for that design:
https://generateblocks.com/library/?pattern-category=query-loop
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 22, 2022 at 8:34 am #2320288Erol
Hi David many thanks for the quick reply. I know I can do anything I like with GenerateBlocks π But I needed this to display latest posts from a category in the home page dynamicaly.
August 22, 2022 at 8:42 am #2320299David
StaffCustomer SupportYou can use the Query Loop block top do that π
In the GB Query Loop setting you can Add Parameter. And set the Taxonomy to Categories.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 22, 2022 at 8:48 am #2320306Erol
I know this too π I was wondering if it is possible to display in two grids, First one displaying the latest post and on the right hand side grid we display 3 more posts from the same category stacked on top of each other using some custom CSS or would it be possible to hide the latest post from the second content template since it is already displayed on the left hand side grid.
August 22, 2022 at 8:50 am #2320311Erol
Like in your Dispatch site https://gpsites.co/dispatch/ (First WP Show Posts Section) only difference is the right column will have 3 posts stacked one after another π
August 22, 2022 at 8:55 am #2320315David
StaffCustomer SupportSo are you ok with using GenerateBlocks for this?
Let me know and ill explain π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 22, 2022 at 8:59 am #2320324Erol
Yes. I have been with GP since 2016 and never use anything else on my projects π
August 22, 2022 at 9:41 am #2320366David
StaffCustomer SupportYou can:
1. Add a 2 column Grid Block.
2. In the first column add a Query Loop block to show the first post.
3. In the second column add a Query Loop to show the stack of posts. In this query loop you can set the Add Parameter and chooseOffset
to mis out the first post.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 22, 2022 at 10:28 am #2320420Erol
Great. Thank you very much David.
August 23, 2022 at 1:38 am #2320948David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.