Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End SOLVED: Only List Parent Titles In Custom Post Type

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #157085
    Steven Morgan
    Participant

    I am listing all of my titles in a custom post type by looping that post type and using the_title() to get the titles of the pages. That lists all parents and children, I only want to see parents pages. How do I filter child pages out?

    #157086
    Steven Morgan
    Participant

    I got it. I had to use the post_parent = 0 in query post

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.