Pagination in custom archive.php page












3















I have created a custom archive.php page by adding some extra code to the default archive.php. I want to do pagination in that page but I don't know why it is not working.



I use wp-pagenavi plugin for pagination. It shows the page not found error when I click on the 2nd page. To be more understandable I am posting an image of what is happening.



The image below is what happens when the page loads. You can see the site address which I have marked in red:
enter image description here



Next is the image of what happens when I click on '2' to navigate to the 2nd page. As you can see the URL is ../?m=201303&paged=2.



enter image description here



Below is the code I use for the custom archive page:



<?php

get_header(); ?>

<div class="archive_page">

<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array_merge( $wp_query->query,
array( 'cat' =>'-1,-8,-9',
'posts_per_page'=>'2',
'paged' =>$paged));
query_posts( $args );
?>
<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'twentyeleven' ); ?>
<?php endif; ?>
</h1>
</header>
<div id="navig">
<?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<div id="all_posts">
<div id="auth_ava">
<?php echo get_avatar( get_the_author_email(), '65');?>
</div>
<div class="post_title_archive">
<?php
the_title();
?>
</div>
<div id="name_date_coment_tag">
<div id="auth_dis_name">
<?php the_author_posts_link();?>
</div>
<div class="border">|</div>
<div id="posted_date_archive">
<?php
the_time('F j, Y');
?>
</div>
<div class="border">|</div>
<div class="categories">
Categories: <?php the_category(', '); ?>
</div>
<div class="border">|</div>
<div id="tags_archive">
<?php
the_tags('Tags: ', ', ', '<br />');
?>
</div>
</div>
</div>
<div class="excerpt_archive">
<?php
the_excerpt();
?>
</div>
<?php endwhile; ?>
<div id="navig">
<?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
</div>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header>
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div>
</article>
<?php endif; ?>
</div>
<?php get_footer(); ?>


I am really sorry for a long question. I hope it is clear what I want to achieve.










share|improve this question





























    3















    I have created a custom archive.php page by adding some extra code to the default archive.php. I want to do pagination in that page but I don't know why it is not working.



    I use wp-pagenavi plugin for pagination. It shows the page not found error when I click on the 2nd page. To be more understandable I am posting an image of what is happening.



    The image below is what happens when the page loads. You can see the site address which I have marked in red:
    enter image description here



    Next is the image of what happens when I click on '2' to navigate to the 2nd page. As you can see the URL is ../?m=201303&paged=2.



    enter image description here



    Below is the code I use for the custom archive page:



    <?php

    get_header(); ?>

    <div class="archive_page">

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array_merge( $wp_query->query,
    array( 'cat' =>'-1,-8,-9',
    'posts_per_page'=>'2',
    'paged' =>$paged));
    query_posts( $args );
    ?>
    <?php if ( have_posts() ) : ?>

    <header class="page-header">
    <h1 class="page-title">
    <?php if ( is_day() ) : ?>
    <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
    <?php elseif ( is_month() ) : ?>
    <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
    <?php elseif ( is_year() ) : ?>
    <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
    <?php else : ?>
    <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
    <?php endif; ?>
    </h1>
    </header>
    <div id="navig">
    <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
    </div>
    <?php while ( have_posts() ) : the_post(); ?>
    <div id="all_posts">
    <div id="auth_ava">
    <?php echo get_avatar( get_the_author_email(), '65');?>
    </div>
    <div class="post_title_archive">
    <?php
    the_title();
    ?>
    </div>
    <div id="name_date_coment_tag">
    <div id="auth_dis_name">
    <?php the_author_posts_link();?>
    </div>
    <div class="border">|</div>
    <div id="posted_date_archive">
    <?php
    the_time('F j, Y');
    ?>
    </div>
    <div class="border">|</div>
    <div class="categories">
    Categories: <?php the_category(', '); ?>
    </div>
    <div class="border">|</div>
    <div id="tags_archive">
    <?php
    the_tags('Tags: ', ', ', '<br />');
    ?>
    </div>
    </div>
    </div>
    <div class="excerpt_archive">
    <?php
    the_excerpt();
    ?>
    </div>
    <?php endwhile; ?>
    <div id="navig">
    <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
    </div>
    <?php else : ?>
    <article id="post-0" class="post no-results not-found">
    <header class="entry-header">
    <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    </header>
    <div class="entry-content">
    <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    <?php get_search_form(); ?>
    </div>
    </article>
    <?php endif; ?>
    </div>
    <?php get_footer(); ?>


    I am really sorry for a long question. I hope it is clear what I want to achieve.










    share|improve this question



























      3












      3








      3








      I have created a custom archive.php page by adding some extra code to the default archive.php. I want to do pagination in that page but I don't know why it is not working.



      I use wp-pagenavi plugin for pagination. It shows the page not found error when I click on the 2nd page. To be more understandable I am posting an image of what is happening.



      The image below is what happens when the page loads. You can see the site address which I have marked in red:
      enter image description here



      Next is the image of what happens when I click on '2' to navigate to the 2nd page. As you can see the URL is ../?m=201303&paged=2.



      enter image description here



      Below is the code I use for the custom archive page:



      <?php

      get_header(); ?>

      <div class="archive_page">

      <?php
      $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
      $args = array_merge( $wp_query->query,
      array( 'cat' =>'-1,-8,-9',
      'posts_per_page'=>'2',
      'paged' =>$paged));
      query_posts( $args );
      ?>
      <?php if ( have_posts() ) : ?>

      <header class="page-header">
      <h1 class="page-title">
      <?php if ( is_day() ) : ?>
      <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
      <?php elseif ( is_month() ) : ?>
      <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
      <?php elseif ( is_year() ) : ?>
      <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
      <?php else : ?>
      <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
      <?php endif; ?>
      </h1>
      </header>
      <div id="navig">
      <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
      </div>
      <?php while ( have_posts() ) : the_post(); ?>
      <div id="all_posts">
      <div id="auth_ava">
      <?php echo get_avatar( get_the_author_email(), '65');?>
      </div>
      <div class="post_title_archive">
      <?php
      the_title();
      ?>
      </div>
      <div id="name_date_coment_tag">
      <div id="auth_dis_name">
      <?php the_author_posts_link();?>
      </div>
      <div class="border">|</div>
      <div id="posted_date_archive">
      <?php
      the_time('F j, Y');
      ?>
      </div>
      <div class="border">|</div>
      <div class="categories">
      Categories: <?php the_category(', '); ?>
      </div>
      <div class="border">|</div>
      <div id="tags_archive">
      <?php
      the_tags('Tags: ', ', ', '<br />');
      ?>
      </div>
      </div>
      </div>
      <div class="excerpt_archive">
      <?php
      the_excerpt();
      ?>
      </div>
      <?php endwhile; ?>
      <div id="navig">
      <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
      </div>
      <?php else : ?>
      <article id="post-0" class="post no-results not-found">
      <header class="entry-header">
      <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
      </header>
      <div class="entry-content">
      <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
      <?php get_search_form(); ?>
      </div>
      </article>
      <?php endif; ?>
      </div>
      <?php get_footer(); ?>


      I am really sorry for a long question. I hope it is clear what I want to achieve.










      share|improve this question
















      I have created a custom archive.php page by adding some extra code to the default archive.php. I want to do pagination in that page but I don't know why it is not working.



      I use wp-pagenavi plugin for pagination. It shows the page not found error when I click on the 2nd page. To be more understandable I am posting an image of what is happening.



      The image below is what happens when the page loads. You can see the site address which I have marked in red:
      enter image description here



      Next is the image of what happens when I click on '2' to navigate to the 2nd page. As you can see the URL is ../?m=201303&paged=2.



      enter image description here



      Below is the code I use for the custom archive page:



      <?php

      get_header(); ?>

      <div class="archive_page">

      <?php
      $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
      $args = array_merge( $wp_query->query,
      array( 'cat' =>'-1,-8,-9',
      'posts_per_page'=>'2',
      'paged' =>$paged));
      query_posts( $args );
      ?>
      <?php if ( have_posts() ) : ?>

      <header class="page-header">
      <h1 class="page-title">
      <?php if ( is_day() ) : ?>
      <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
      <?php elseif ( is_month() ) : ?>
      <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
      <?php elseif ( is_year() ) : ?>
      <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
      <?php else : ?>
      <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
      <?php endif; ?>
      </h1>
      </header>
      <div id="navig">
      <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
      </div>
      <?php while ( have_posts() ) : the_post(); ?>
      <div id="all_posts">
      <div id="auth_ava">
      <?php echo get_avatar( get_the_author_email(), '65');?>
      </div>
      <div class="post_title_archive">
      <?php
      the_title();
      ?>
      </div>
      <div id="name_date_coment_tag">
      <div id="auth_dis_name">
      <?php the_author_posts_link();?>
      </div>
      <div class="border">|</div>
      <div id="posted_date_archive">
      <?php
      the_time('F j, Y');
      ?>
      </div>
      <div class="border">|</div>
      <div class="categories">
      Categories: <?php the_category(', '); ?>
      </div>
      <div class="border">|</div>
      <div id="tags_archive">
      <?php
      the_tags('Tags: ', ', ', '<br />');
      ?>
      </div>
      </div>
      </div>
      <div class="excerpt_archive">
      <?php
      the_excerpt();
      ?>
      </div>
      <?php endwhile; ?>
      <div id="navig">
      <?php if (function_exists('wp_pagenavi')){wp_pagenavi();}?>
      </div>
      <?php else : ?>
      <article id="post-0" class="post no-results not-found">
      <header class="entry-header">
      <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
      </header>
      <div class="entry-content">
      <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
      <?php get_search_form(); ?>
      </div>
      </article>
      <?php endif; ?>
      </div>
      <?php get_footer(); ?>


      I am really sorry for a long question. I hope it is clear what I want to achieve.







      wordpress pagination






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 29 '16 at 12:35









      zx485

      14.2k123047




      14.2k123047










      asked Apr 16 '13 at 6:50









      Midhun MathewMidhun Mathew

      79271639




      79271639
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Just try with the following :



          <?php
          //the query using arguments above
          $wp_query = new WP_Query( $args );

          //use the query for paging
          $wp_query->query_vars[ 'paged' ] > 1 ? $current = $wp_query->query_vars[ 'paged' ] : $current = 1;

          //set the "paginate_links" array to do what we would like it it. Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
          $pagination = array(
          'base' => @add_query_arg( 'paged', '%#%' ),
          //'format' => '',
          'showall' => false,
          'end_size' => 4,
          'mid_size' => 4,
          'total' => $wp_query->max_num_pages,
          'current' => $current,
          'type' => 'plain'
          );

          //build the paging links
          if ( $wp_rewrite->using_permalinks() )
          $pagination[ 'base' ] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

          //more paging links
          if ( !empty( $wp_query->query_vars[ 's' ] ) )
          $pagination[ 'add_args' ] = array( 's' => get_query_var( 's' ) );

          //run the query
          if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
          ?>


          Also refer the following locations :



          https://wordpress.stackexchange.com/questions/32100/pagination-on-a-custom-page-template



          And



          http://wordpress.org/support/topic/custom-post-type-archive-page-pagination-isnt-working



          I think this may help you to resolve your problem.






          share|improve this answer


























          • even I change the code to this it shows the same problem.

            – Midhun Mathew
            Apr 16 '13 at 8:30











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16030541%2fpagination-in-custom-archive-php-page%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Just try with the following :



          <?php
          //the query using arguments above
          $wp_query = new WP_Query( $args );

          //use the query for paging
          $wp_query->query_vars[ 'paged' ] > 1 ? $current = $wp_query->query_vars[ 'paged' ] : $current = 1;

          //set the "paginate_links" array to do what we would like it it. Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
          $pagination = array(
          'base' => @add_query_arg( 'paged', '%#%' ),
          //'format' => '',
          'showall' => false,
          'end_size' => 4,
          'mid_size' => 4,
          'total' => $wp_query->max_num_pages,
          'current' => $current,
          'type' => 'plain'
          );

          //build the paging links
          if ( $wp_rewrite->using_permalinks() )
          $pagination[ 'base' ] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

          //more paging links
          if ( !empty( $wp_query->query_vars[ 's' ] ) )
          $pagination[ 'add_args' ] = array( 's' => get_query_var( 's' ) );

          //run the query
          if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
          ?>


          Also refer the following locations :



          https://wordpress.stackexchange.com/questions/32100/pagination-on-a-custom-page-template



          And



          http://wordpress.org/support/topic/custom-post-type-archive-page-pagination-isnt-working



          I think this may help you to resolve your problem.






          share|improve this answer


























          • even I change the code to this it shows the same problem.

            – Midhun Mathew
            Apr 16 '13 at 8:30
















          0














          Just try with the following :



          <?php
          //the query using arguments above
          $wp_query = new WP_Query( $args );

          //use the query for paging
          $wp_query->query_vars[ 'paged' ] > 1 ? $current = $wp_query->query_vars[ 'paged' ] : $current = 1;

          //set the "paginate_links" array to do what we would like it it. Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
          $pagination = array(
          'base' => @add_query_arg( 'paged', '%#%' ),
          //'format' => '',
          'showall' => false,
          'end_size' => 4,
          'mid_size' => 4,
          'total' => $wp_query->max_num_pages,
          'current' => $current,
          'type' => 'plain'
          );

          //build the paging links
          if ( $wp_rewrite->using_permalinks() )
          $pagination[ 'base' ] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

          //more paging links
          if ( !empty( $wp_query->query_vars[ 's' ] ) )
          $pagination[ 'add_args' ] = array( 's' => get_query_var( 's' ) );

          //run the query
          if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
          ?>


          Also refer the following locations :



          https://wordpress.stackexchange.com/questions/32100/pagination-on-a-custom-page-template



          And



          http://wordpress.org/support/topic/custom-post-type-archive-page-pagination-isnt-working



          I think this may help you to resolve your problem.






          share|improve this answer


























          • even I change the code to this it shows the same problem.

            – Midhun Mathew
            Apr 16 '13 at 8:30














          0












          0








          0







          Just try with the following :



          <?php
          //the query using arguments above
          $wp_query = new WP_Query( $args );

          //use the query for paging
          $wp_query->query_vars[ 'paged' ] > 1 ? $current = $wp_query->query_vars[ 'paged' ] : $current = 1;

          //set the "paginate_links" array to do what we would like it it. Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
          $pagination = array(
          'base' => @add_query_arg( 'paged', '%#%' ),
          //'format' => '',
          'showall' => false,
          'end_size' => 4,
          'mid_size' => 4,
          'total' => $wp_query->max_num_pages,
          'current' => $current,
          'type' => 'plain'
          );

          //build the paging links
          if ( $wp_rewrite->using_permalinks() )
          $pagination[ 'base' ] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

          //more paging links
          if ( !empty( $wp_query->query_vars[ 's' ] ) )
          $pagination[ 'add_args' ] = array( 's' => get_query_var( 's' ) );

          //run the query
          if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
          ?>


          Also refer the following locations :



          https://wordpress.stackexchange.com/questions/32100/pagination-on-a-custom-page-template



          And



          http://wordpress.org/support/topic/custom-post-type-archive-page-pagination-isnt-working



          I think this may help you to resolve your problem.






          share|improve this answer















          Just try with the following :



          <?php
          //the query using arguments above
          $wp_query = new WP_Query( $args );

          //use the query for paging
          $wp_query->query_vars[ 'paged' ] > 1 ? $current = $wp_query->query_vars[ 'paged' ] : $current = 1;

          //set the "paginate_links" array to do what we would like it it. Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
          $pagination = array(
          'base' => @add_query_arg( 'paged', '%#%' ),
          //'format' => '',
          'showall' => false,
          'end_size' => 4,
          'mid_size' => 4,
          'total' => $wp_query->max_num_pages,
          'current' => $current,
          'type' => 'plain'
          );

          //build the paging links
          if ( $wp_rewrite->using_permalinks() )
          $pagination[ 'base' ] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

          //more paging links
          if ( !empty( $wp_query->query_vars[ 's' ] ) )
          $pagination[ 'add_args' ] = array( 's' => get_query_var( 's' ) );

          //run the query
          if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
          ?>


          Also refer the following locations :



          https://wordpress.stackexchange.com/questions/32100/pagination-on-a-custom-page-template



          And



          http://wordpress.org/support/topic/custom-post-type-archive-page-pagination-isnt-working



          I think this may help you to resolve your problem.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 '17 at 12:37









          Community

          11




          11










          answered Apr 16 '13 at 7:11









          John PeterJohn Peter

          2,45132243




          2,45132243













          • even I change the code to this it shows the same problem.

            – Midhun Mathew
            Apr 16 '13 at 8:30



















          • even I change the code to this it shows the same problem.

            – Midhun Mathew
            Apr 16 '13 at 8:30

















          even I change the code to this it shows the same problem.

          – Midhun Mathew
          Apr 16 '13 at 8:30





          even I change the code to this it shows the same problem.

          – Midhun Mathew
          Apr 16 '13 at 8:30


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16030541%2fpagination-in-custom-archive-php-page%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          To store a contact into the json file from server.js file using a class in NodeJS

          Redirect URL with Chrome Remote Debugging Android Devices

          Dieringhausen