Support » Fixing WordPress » Getting wp_query to exclude children

  • 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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting wp_query to exclude children’ is closed to new replies.