Support » Fixing WordPress » How to create Pagination–not working

  • I’ve define a Custom Post named “photos” from this plugin and i am calling Photos my page here is code
    but tell me how to show pagination

    <?php
    $my_query = new WP_Query();
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $my_query->query(‘cat=’. get_cat_ID(‘raves’) .’&posts_per_page=3&paged=’.$paged);
    while ($my_query->have_posts()) : $my_query->the_post();
    ?>

    <?php get_the_content() ?>

  • <div class=”top”>
    <div class=”post_date”><?php the_time(‘j M’); ?><span><?php the_time(‘Y’); ?></span></div>
    <div class=”left”>
    <h1>“><?php the_title();?></h1>
    <div class=”posted”>

      <li class=”last”>Durwachter Alumini Center
  • </div>
    </div>
    </div>
    <div class=”bott”>
    <?php the_post_thumbnail();?>
    <div class=”txt”>
    <?php the_excerpt(”);?>
    </div>
    </div>

    <?php endwhile; ?>

    <?php if ( $my_query->max_num_pages > 1 ) : ?>
    <?php previous_posts_link( __( ‘Previous’, ‘themename’ ) ); ?>
    <?php next_posts_link( __( ‘Next’, ‘themename’ ) ); ?>
    <?php endif; wp_reset_query(); ?>

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  • The topic ‘How to create Pagination–not working’ is closed to new replies.