Thread Starter
poco06
(@poco06)
Looks like a problem created by your theme (or a plugin, possibly). Can you revert to Twenty Eleven theme and see if the problem still persists? You can put back your theme afterwards.
Thread Starter
poco06
(@poco06)
Hi Krishna,
I have replaced Gantry theme by Twenty Eleven and it’s working fine. In order to make pagebar working, I modified the file : wp-content/themes/rt_gantry_wp/html/home.php as follow :
Initial value :
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<!-- Begin Navigation -->
<?php if($custom_query->max_num_pages > 1) : ?>
<div class="rt-pagination nav">
<div class="alignleft">
<?php next_posts_link('« '._r('Older Entries'), $custom_query->max_num_pages); ?>
</div>
<div class="alignright">
<?php previous_posts_link(_r('Newer Entries').' »', $custom_query->max_num_pages) ?>
</div>
<div class="clear"></div>
</div>
<?php endif; ?>
<!-- End Navigation -->
Modified by :
<!-- Begin Navigation partie modifiée pour intégrer pagenavi -->
<?php if($custom_query->max_num_pages > 1) : ?>
<div class="rt-pagination nav">
<?php pagebar(); ?>
<div class="clear"></div>
</div>
<?php endif; ?>
<!-- End Navigation -->
Regards
It looks OK.
While posting code, please use the code button or use backticks.
Thread Starter
poco06
(@poco06)
OK Krishna,
Unfortunately, this is not solving my issue as when I switch to Gantry again, the same problem is coming back.
Regards
Thread Starter
poco06
(@poco06)
Hello,
Is there a way to find where the max_pages variable is defined?
Many thanks
Thread Starter
poco06
(@poco06)
Hello,
I have no issue with redirected links. In fact, it seems that the “total_pages” is equal to “total_posts” in my case. If I set the number of post per page to 1, then, pagebar is working correctly!
Regards