How to display only top level posts in loop via WP_Query?

Question

How do I set my custom loop to only show top-level posts? I have a hierarchical custom post type and the archive page shows both the parent and child posts.

0
m-torin 4 months 0 Answers 16 views 0

Leave an answer