Home › Forums › Weaver X Tutorials and Hints › tutorial to add and display custom post › Re: tutorial to add and display custom post
June 19, 2016 at 00:18 UTC - Views: 13
#29171
Participant
I guess it’s because the query:
$args = array(‘post_type’ => ‘medicinal_plant’, ‘author_name’ => ‘david’); // ‘posts_per_page’ => 5
$the_query = new WP_Query( $args );
$row_cnt = 0;
// The Loop
while ( $the_query->have_posts() ){
$the_query->the_post();
isn’t returning anything. What’s wrong with the above?