Home Forums Weaver X Tutorials and Hints tutorial to add and display custom post Re: tutorial to add and display custom post

#29171
davidm
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?