Site logo

[Resolved] Edit Category Pages with dynamic content

Home Forums Support [Resolved] Edit Category Pages with dynamic content

Home Forums Support Edit Category Pages with dynamic content

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2585462
    Roger

    I have edited the category pages using a Block element that uses a Query Loop that returns all the category posts.
    How can I only show the category results from the block element and avoid showing the category created by default.
    The idea is avoiding duplicated results and force that only show the ones created through the new created element block (or maybe should be a hook).

    Thanks

    #2585515
    David
    Staff
    Customer Support

    Hi there,

    1. Add new Block Element.
    1.1 set the block element type in the editor to: Loop Template

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

    1.2 Set the Display Rules to All Archives

    2. In the editor add a GB Query Loop
    2.1 Do not set any parameters
    2.2 check the Inherit Query from Template

    Now this one element will be used on all archives and the Query Loop will display posts that match the current query

    #2585555
    Roger

    It works fine David.
    However, in the category pages now it does not show all the blogposts.
    How can I create a pagination or retrieve all the category results?

    Thanks 😀

    #2585575
    David
    Staff
    Customer Support

    Edit the loop template, select the Query Loop block, in its Toolbar there is a button to Add Navigation.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.