post image slider not recognizing new posts? plz check my code below
-
hello
i have this slider in my website which shows post title and posts first image.can anyone tell me if there’s something wrong with it.
it picks up older posts just fine, but it does not pick up any new posts. is it only picking up specific images?
heres the code, its in my index.php<!– root element for scrollable –>
<div class=”scrollable” id=chained><!– root element for the items –>
<div class=”items”>
<?php$args = array(
‘cat’ => 36,
‘posts_per_page’ => 5,
‘paged’ => $paged
);
query_posts( $args );
?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><div>
<?php the_post_thumbnail();?>
<div class=”caption-bkgd”></div>
<div class=”caption”>“><?php the_title();?></div>
</div><?php endwhile; ?>
<?php wp_reset_query(); ?></div>
</div>
- The topic ‘post image slider not recognizing new posts? plz check my code below’ is closed to new replies.