Put a page in slider
-
I wonder if is possible to put a slider with pages, instead of posts. I read the WP Query but i found nothing. Thanks
$sl_args = array( 'posts_per_page' => $sl_num, 'category_name' => esc_attr(of_get_option('sl_category')), 'ignore_sticky_posts' => 1 ); $slider_query = new WP_Query( $sl_args ); $checkthumb = 0; while ( $slider_query->have_posts() ) : $slider_query->the_post(); if(has_post_thumbnail( $post->ID )){ $checkthumb = 1; } endwhile; if( $slider_query && ( 1 == $checkthumb ) ){
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Put a page in slider’ is closed to new replies.