<?php
$slider_query = new WP_Query(array('post_type'=>'slider'));
if ( $slider_query->have_posts() ) {
    while ( $slider_query->have_posts() ) {
        $the_query->the_post();
?>

<?php        
    }
  
} 
wp_reset_postdata();
?>
Categories: PHP

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *