• Purab

    (@wordpressapi)


    I created the custom post type called wordpress themes. I created two posts. When I checked the page I found auto draft on that page.
    My code is as follows:

    $loop = new WP_Query(array('post_type' => 'wordpress-themes',
          									'post_status' => 'published',
          									'paged' => $paged,
          									'posts_per_page' => 10,
          									'orderby' => 'menu_order'
          									));
    	?>
    
    <?php while($loop->have_posts()) : $loop->the_post();?>

    You can see the issue on following page. https://digcms.com/wordpress-themes/

    Can any body suggest me code.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom post type showing on page, issue’ is closed to new replies.