• Resolved rughooker

    (@rughooker)


    Love this plug-in! but I cannot figure out how to list pages that do not have a parent. I can list the ones that have parents, but how do I do the opposite?

    • This topic was modified 6 years, 3 months ago by rughooker. Reason: spelling
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Sorry but I do not quite understand what the problem is. Pages that have no parent pages, i.e. pages that are not child pages, do not require any special configuration. Just use [catlist post_type="page"] and all recent pages will be listed.

    Thread Starter rughooker

    (@rughooker)

    Looking at it another way, I want to list only pages that do not have parents.

    Thread Starter rughooker

    (@rughooker)

    So if a page has children, do not list that page or the children.

    Plugin Contributor zymeth25

    (@zymeth25)

    What should be possible is to hide all child pages, but currently it is not because of a bug in the plugin. It should work with [catlist post_parent=0]. We will fix that.

    But excluding parent pages that have children is not possible in WP_Query which is the underlying functionality of the LCP plugin. So we would have to implement it from scratch. I will save it as a feature request but I doubt we can find the time to work on it soon.

    In the meantime you can exclude parent pages “manually”: [catlist excludeposts=23]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘show no-parent pages’ is closed to new replies.