I’m debugging a plugin, and found something strange I could isolate to this short code. It counts the number of pages in the DB:
`$myQuery = new WP_Query();
$numberOfPages = 0;
The problem is I get 10, while there are 12 published pages in the DB. How can that happen?
- The topic ‘WP_Query skipping pages’ is closed to new replies.