Archived topic
Blog: include pages + posts
3 replies · Started by Dominik on June 17, 2022
Hello,
is it possible to include also the pages to show up at the Blog starting page (shown latest posts on starting page) (actually only posts are shown here in the standard WP setup: shorturl.at/hnsM4)
For Archive Pages it is working for me to also include pages. I am using this plugin: https://wordpress.org/plugins/create-and-assign-categories-for-pages/ (See result here: shorturl.at/bszI7 )
In general we are always producing our articles in "Pages" and don't use "Posts" at all. Reason for that is the hierarchical structure, which we need for SEO purposes.
Would be great if you could help me here.
If this is not working maybe you have some ideas how to solve this.
Thank you in advance!
Best regards,
Tom
Hi there,
I can't see the shorturl links.
If all of your contents are pages, you can create a static page and use the query loop block of GenerateBlocks to add the pages.
You can download GenerateBlocks 1.5 here:
https://generateblocks.com/generateblocks-1-5-dynamic-data-query-loops-image-blocks/
Hi @Ying,
thank you for you answer.
Here is the layout I try to redo. Actually this is done with GP and GP Blocks, but as I told everything is based on Posts. --> https://jmp.sh/v/e1IzCHDTgIyihQaVQykZQDswv My setup is done like that: https://jmp.sh/v/p4weK7SOw9JsjLFG4yjIQVeIl
I need exactly this based on "Pages".
I tried to play a bit with the "query loop block". But I think I cannot redo this because of the loop, right (first post different style)?
Next question would also be: When I have this setup https://jmp.sh/v/p4weK7SOw9JsjLFG4yjIQVeIl how can I include this into a static page? Because I cannot hook this, because I must use the Content Template in the first run, otherwise I cannot build the child (for the first post).
Thank you for the help.
Best regards,
Dom
I tried to play a bit with the “query loop block”. But I think I cannot redo this because of the loop, right (first post different style)?
You can with Query loop block.
You can add 1st query loop block with 1 page, then add 2nd query loop block with 9 or whatever number of pages you want.The two query loop blocks can be totally different style.
And you can add the offsetparameter to 2nd query loop, set the value to 1, so that the 2nd query loop block starts from the 2nd page.