Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Displaying posts from specific category with Query Loop pattern

  • Hello!

    I’m trying to create a page where all of my recent posts are displayed ONLY for one specific category, but don’t know if it’s possible.

    I know I can open up the Pattern Library and then add in a Query Loop, which will display my recent posts. But is there any way to add a filter to this so that it only displays posts of one category?

    Thank you!

  • Hi there,

    In your Query Loop block, try the following:

    1. Click the “Add Parameter” button
    2. In the select, choose “Taxonomies”
    3. Now in the Taxonimies select, choose “Categories”
    4. In the “Select Terms” select, choose the category to wish to query posts from

    Your Query Loop should now only query posts from the selected category.

    Let us know 🙂

  • Awesome. Thank you!

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