Title: Query Loops
Last modified: April 12, 2023

---

# Query Loops

 *  Resolved [editorialteam](https://wordpress.org/support/users/editorialteam/)
 * (@editorialteam)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/query-loops/)
 * Hi,
 * I have several post categories configured, such as politics, government etc. 
   Is it possible to setup a query loop on a new page but only pulling in posts 
   from one post category?
 * WordPress 6.2 is installed along with the Twenty Twenty Three theme.
 * Many thanks,
 * Mark

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/query-loops/#post-16649621)
 * Hi [@editorialteam](https://wordpress.org/support/users/editorialteam/) – yes,
   absolutely!
 * In the block settings panel, first you’ll need to toggle off “Inherit query from
   template.”
 * In the **Filters** section, select **Taxonomies** to display that section of 
   options.
 * Under **Categories**, enter your category name(s). (This feature uses auto-complete
   so your existing categories will show up when you start to type them.)
 * ![](https://i0.wp.com/cldup.com/lNJFtb_c6S.png?ssl=1)
 * Your Query Loop block should now display posts in the category(ies) you’ve selected.
   [More about Query Loop block settings.](https://wordpress.org/documentation/article/query-loop-block/#block-settings)
 *  Thread Starter [editorialteam](https://wordpress.org/support/users/editorialteam/)
 * (@editorialteam)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/query-loops/#post-16649755)
 * Hi Kathryn P.
 * Thank you so much. This seems to work well. I’m creating a new WordPress website
   design on a staging site using the Twenty Twenty Three theme. My live site is
   using Twenty Nineteen. All the posts and pages have to be replicated on both 
   sites until I go live with the new design. Do you know if I can do the same as
   above on the Twenty Nineteen site – query loop, toggle off Inherit query…, Filters
   etc?
 * Many thanks,
 * Mark
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/query-loops/#post-16649772)
 * [@editorialteam](https://wordpress.org/support/users/editorialteam/) Yes, you
   can use the Query Loop in Twenty Nineteen on pages and it’ll work the same way.
 * Twenty Nineteen doesn’t support the [Site Editor](https://wordpress.org/documentation/article/site-editor/),
   so you can’t use [templates](https://wordpress.org/documentation/article/template-editor/),
   but you mentioned creating a **page** earlier, so it should work just fine.
 *  Thread Starter [editorialteam](https://wordpress.org/support/users/editorialteam/)
 * (@editorialteam)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/query-loops/#post-16651351)
 * Thank you again. All good.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Query Loops’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwentythree/1.6/screenshot.
   png)
 * Twenty Twenty-Three
 * [Support Threads](https://wordpress.org/support/theme/twentytwentythree/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwentythree/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwentythree/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwentythree/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [editorialteam](https://wordpress.org/support/users/editorialteam/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/query-loops/#post-16651351)
 * Status: resolved