lundi 5 octobre 2015

All pages showing same posts

My blog is showing all the same posts (recent 10) on every paginated page. I'm trying to get it to display only the category "irl", which is working. but /page/2 etc. show the same posts..

my loop:

  <?php get_header(); ?>
<div id="content">
    <div id="main-content">
        <?php query_posts( 'category_name=irl&showposts=10'); while (have_posts()) : the_post(); // ?>
<b>
<div id="min-thumb" style="margin-bottom:80px;">
<?php 
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail();
} 
?>
</div>

<a style="display:none;" href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>

<?php
endwhile;
?>

        </div><!-- close:main-content -->
        <?php get_sidebar(); ?>
    </div><!-- close:content -->
<?php get_footer(); ?>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire