Ready to get started?Download WordPress


Custom Content Type Manager
How to create Pagination--not working (1 post)

  1. Rameez SOOMRO
    Posted 1 year ago #

    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

    $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() ?>

  2. <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
  3. </div>
    <div class="bott">
    <?php the_post_thumbnail();?>
    <div class="txt">
    <?php the_excerpt('');?>

    <?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(); ?>


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic