Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Query posts and pagenavi

    but why I add what you said to my code,it didn’t work.

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('cat=22&offset=1&paged=$paged&posts_per_page=10');?>
    <?php while(have_posts()):the_post();?>
    <div class="listitem">
    <h1><?php the_title();?></h1>
    <?php if(get_post_meta($post->ID,'topic_image','true')):?>
    <?php $image=get_post_meta($post->ID,'topic_image','true');?>
    <img src="<?php echo $image;?>" />
    <?php else:?>
    <img src="<?php bloginfo('template_url')?>/custom_images/default.jpg" />
    <?php endif;?>
    <?php the_excerpt();?><a href="<?php the_permalink();?>">[MORE]</a>
    </div>
    <?php endwhile;?>
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>

Viewing 1 replies (of 1 total)