Deleted pages showing up when querying for child pages
You’re using a raw SQL query to do a post query, this is bad, because: There are already APIs that do this It is no longer inheriting the default parameters It doesn’t go through the caching system so it can be slower Intead, use WP_Query. The reason you’re getting trashed posts is because you’re not … Read more