[Resolved] Replace blog page and archives with Queryloops?

Home Forums Support [Resolved] Replace blog page and archives with Queryloops?

Home Forums Support Replace blog page and archives with Queryloops?

  • This topic has 3 replies, 2 voices, and was last updated 1 month ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2281512
    Jonas

    Hi! I´m am trying to learn WordPress, Generatepress and Generateblocks and understand how to use it all together. Are the most people replacing WordPress blogpage and category-archives with the new query loops? Or is it more ment to be used as for example to show the last 4 blogposts on the Homepage? Is there any right or wrong in that? Because I can see the point of being able to customize the blogpage more. But for example, the category query loop term links to the WordPress category archive page of that category with made me confused. Or is there a way to link that to a static category page built with Query loops?
    Kind regards/Jonas

    #2281552
    David
    Staff
    Customer Support

    Hi there,

    in an upcoming update to GP Premium we will be adding a feature to the Block Elements module that will allow you to remove the Themes Loop from any template. And in its place you can build out the block element using the Query Loop Block ( or any other blocks ). In the instances where the query is defined by the template eg. a Category Archive, you can use Inherit query from template toggle in the GB Query Loop block. And GP and GB will do the rest. So you could build one element that displays a custom query loop on all category archives for example.

    It is possible to do this today, but requires some custom development.

    There are also some other alternative methods that hijack the template hierarchy to show a static page in place of the category template. Theres a doc on that here

    Personally if you feel the need to rebuild the entire loop then wait for the next GP Premium update.

    Or if you just want design your post content templates for your archives then use a Block Element – Content Template:

    https://docs.generatepress.com/article/block-element-content-template/

    #2281753
    Jonas

    Thank you for the answer David!
    /Jonas

    #2281790
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.