Archived topic
GenerateBlocks vs WP Show Posts
3 replies · Started by lunatrix on May 25, 2021
I would like to add a post layout to a page and I am wondering if I can do it with GenerateBlocks, or if I should opt for WP Show Posts?
I have a blog with (currrently) 6 categories. On one of my pages I want to display posts that are in 2 of the categories, and not the other categories. I was following the custom blog layout video on YouTube but couldn't get my custom post block to show on my desired page. Did I miss a hook? Or is it not possible to do this with GB?
Thanks!
Hi lunatrix,
I would like to add a post layout to a page and I am wondering if I can do it with GenerateBlocks, or if I should opt for WP Show Posts?
You'll need WP Show posts or a plugin of a similar function because GenerateBlocks don't do post queries. It's for doing layouts. :)
I was following the custom blog layout video on YouTube but couldn’t get my custom post block to show on my desired page. Did I miss a hook? Or is it not possible to do this with GB?
While you can change the layout of an existing post archive or blog page with GenerateBlocks and GP Premium 2.0 like you saw on Leo's videos, that's not a substitute for WP Show Posts because that only changes the template for an existing query. It doesn't add post queries.
Thanks :)
No problem. :D