WP_Query with custom post type in args stopped working
-
I am using WP_Query for accessing a custom post type. Here is the code:
<?php $args = array( 'post_type' => 'family-members', 'posts_per_page' => -1 ); $the_query = new WP_Query( $args ); ?>This code was working fine for couple of years. I don’t know why it broke this way. May be after I updated WP version, or the plugins. Can’t say for sure.
The page only displays half the content and source code ends abruptly when checked in the browser. The background should be white and there is a whole right column with links and menu.
Check here: maheshseva.comPS: WP_Query for the same CPT is working on some other page. Also, the site works fine on my local machine. Happy to share any additional information you need.
The topic ‘WP_Query with custom post type in args stopped working’ is closed to new replies.