Title: Relationship Queries
Last modified: August 18, 2021

---

# Relationship Queries

 *  Resolved [wagonerdesign](https://wordpress.org/support/users/wagonerdesign/)
 * (@wagonerdesign)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/relationship-queries/)
 * Are we able to tell a loop to query current post and display direct children?
   I’d also like to do the other way, query parent of current.
 * I seems that nobody has built a block that is meant to be used in CPT templates
   yet.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tangible](https://wordpress.org/support/users/tangibleinc/)
 * (@tangibleinc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/relationship-queries/#post-15276459)
 * Hello! Yes, it is possible to loop direct children of the current post, or query
   the parent post.
 * The post loop has a field called `parent`, which can used like this:
 *     ```
       <Loop field=parent>
         <Field title />
       </Loop>
       ```
   
 * Similarly, there’s a field called `children`.
 *     ```
       <ul>
         <Loop field=children>
           <li><Field title /></li>
         </Loop>
       </ul>
       ```
   
 * These and other fields are documented here: [https://loop.tangible.one/tags/loop/post](https://loop.tangible.one/tags/loop/post)
 * Please visit [our dicussion forum](https://discourse.tangible.one/c/loops-and-logic/9)
   if you have any questions.
    -  This reply was modified 4 years, 2 months ago by [Tangible](https://wordpress.org/support/users/tangibleinc/).

Viewing 1 replies (of 1 total)

The topic ‘Relationship Queries’ is closed to new replies.

 * ![](https://ps.w.org/tangible-loops-and-logic/assets/icon.svg?rev=2535522)
 * [Loops & Logic](https://wordpress.org/plugins/tangible-loops-and-logic/)
 * [Support Threads](https://wordpress.org/support/plugin/tangible-loops-and-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/tangible-loops-and-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tangible-loops-and-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tangible](https://wordpress.org/support/users/tangibleinc/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/relationship-queries/#post-15276459)
 * Status: resolved