Getting wp_query to exclude children (2 posts)

  1. CPIsd
    Posted 4 years ago #

    I have a custom theme that uses wp_query to generate menu links dynamically on a landing page. My parent and child posts are in the same category, but I only want the parent posts to show up in the menu. How can I make wp-query stop showing the children when it generates a menu?

  2. vtxyzzy
    Posted 4 years ago #

    Maybe a little more information will let someone help you. Please post a few lines of code showing how the wp_query is set up.

Topic Closed

This topic has been closed to new replies.

About this Topic