Query Block / Custom Post Type / Only Parent Pages

  • theoctaneagency

    I’m using a Query block to pull ‘Locations’ custom post types. Each location will have sub-pages that I don’t want included in the query. How do I setup the Query to only include parent/top-level pages?

  • Hi there,

    I don’t think GB query block has a specific feature for this.

    But you can try the Parent exclude parameter and add all the top-level posts, so it does not show the children of the selected parent posts.

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