Site logo

[Resolved] Archive Page With Query Loop Added Via Content Element Displays Posts Repeatedly

Home Forums Support [Resolved] Archive Page With Query Loop Added Via Content Element Displays Posts Repeatedly

Home Forums Support Archive Page With Query Loop Added Via Content Element Displays Posts Repeatedly

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2223050
    Brent Wilson

    I am wanting a customized archive page for a podcast. So I created a block element set to content template, and added the new GB query loop block set to display 15 posts. But the 15 posts are being displayed over and over and over down the page. What am I doing wrong? Should I not be using the query loop inside an archive page?

    #2223055
    Ying
    Staff
    Customer Support

    Should I not be using the query loop inside an archive page?

    That’s correct, query loop block is supposed to add loops into static pages.

    The content you build in Block element – Content template will apply to every post in the loop of your archive page as a template, that’s why it repeats.

    Please check this documentation and video to have better understanding on how to use content template:
    https://docs.generatepress.com/article/block-element-content-template/

    #2223065
    Brent Wilson

    Okay. That makes sense.

    On the archive page, the title is Archives: Podcast. How can I change that to just show Podcast ?

    #2223071
    Brent Wilson

    And another question – on an archive page, where do I set how many posts appear and customize the pagination at the bottom and stuff?

    #2223073
    Ying
    Staff
    Customer Support

    On the archive page, the title is Archives: Podcast. How can I change that to just show Podcast ?

    You can use a block element - page hero to replace the default archive title:
    https://docs.generatepress.com/article/block-element-page-hero/

    on an archive page, where do I set how many posts appear and customize the pagination at the bottom and stuff?

    Posts number is controlled by WP core, you can set posts number at settings > reading.

    How do you want to customize the pagination? If you don’t want the numbers, you can try using a block element – archive navigation:
    https://docs.generatepress.com/article/block-element-archive-navigation-2/

    #2223075
    Brent Wilson

    Great, thanks for the help!

    #2223090
    Ying
    Staff
    Customer Support

    No problem 🙂

    #2428039
    Justin

    Just chiming in to say that there’s seemingly an existing forum thread for every obscure problem I have and the answers from Customer Support are always amazingly succinct and helpful. I’m new to GP/GB and we are blown away by the level of support. Kudos team.

    #2428112
    Ying
    Staff
    Customer Support

    Hi Justin,

    Thanks for the comment, we are delighted to read it 🙂

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