WP_Query not returning what I'd expect.
-
I’m using this query:
<?php $featured = new WP_Query(); ?> <?php $featured->query('post_type=page&custom-write-panel-id=2&child_of=' . $id); ?>
All it ever returns is my “Sitemap” page, which is not a child of $id, and is not a write panel. What am I missing?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘WP_Query not returning what I'd expect.’ is closed to new replies.