All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: WP-PageNavi installed but not showing at all  (Read 1791 times)

0 Members and 1 Guest are viewing this topic.

Offline marino_yigo

  • Newbie
  • *
  • Posts: 3
    • View Profile
WP-PageNavi installed but not showing at all
« on: 14 October 2009, 16:41 »
WordPress version: 2.8.4
Theme Name: ElegantThemes "EarthlyTouch Theme"
http://www.elegantthemes.com/preview/EarthlyTouch/
Plugin Name % Version: wp-pagenavi 2.50
PHP & MySQL version: Hosted by Hostgator php/mysql both latest version
Possible Conflicting Plugins: Limit Posts? http://labitacora.net/comunBlog/limit-post.phps

So I installed the plugin wordpress and activated, placed:

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

in the footer.php page

and I'm not seeing the pagination appear.

I tried putting it in the index.php page but it didn't work as well.

The single.php, page.php and index.php of the theme did have the following code inserted on all 3 files:

<p class="pagination"><?php next_posts_link('&laquo; Previous Entries') ?> <?php previous_posts_link('Next Entries &raquo;') ?></p>


However even before I installed WP-PageNavi this pagination didn't show up either. Does this code conflict with the WP-PageNavi plugin? Should it be deleted before you add

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

well I tried deleting it and even did a php if else with the two but that didn't work either.

Also, would the limit post plugin conflict with the WP-PageNavi plugin?

Would any of these code from the home.php file cause wp-pagenavi not to work?

<!--Begin Post Limit-->            
<?php static $ctr = 0;
if ($ctr == "5") { break; }
else { ?>
<!--End Post Limit-->   

<!--Begin Random Articles-->   
<div class="home-squares">
<div class="home-headings">Random Articles</div>
<?php $my_query = new WP_Query('orderby=rand&showposts=5');
while ($my_query->have_posts()) : $my_query->the_post();
?>
<div class="random">
<div class="random-image">
<a href="<?php the_permalink() ?>"><img height="80px" width="70px" style="border: none;" alt="random article" src="<?php echo get_post_meta($post->ID, "Random", true); ?>" /></a>
</div>
<div class="random-content">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title2('', '...', true, '25') ?></a>
<?php the_content_limit(80, ""); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<!--End Random Articles-->   

<!--Begin Articles Single-->   
<div class="home-post-wrap">
<div class="entry">
<?php // if there's a thumbnail
if($thumb !== '') { ?>
<div class="thumbnail-div" style="margin-bottom: 10px;">
<img src="<?php echo $thumb; ?>" width="90px" height="150px" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>" />
</div>
<?php } // end if statement
// if there's not a thumbnail
else { echo ''; } ?>
<div class="post-content">
<span class="titles"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title2('', '...', true, '50') ?></a></span>
<?php the_content_limit(1000, ""); ?>
<div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">Read More</a></div>
</div>
</div>   
</div>
<!--End Articles Single-->   

I desperately need some sort of pagination working on my site. Thank you.

Limit post is 5  but I already made 20 posts but still the pagination is not showing.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,511
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WP-PageNavi installed but not showing at all
« Reply #1 on: 14 October 2009, 16:46 »
You can add the pagnavi code below:
Code: [Select]
<p class="pagination"><?php next_posts_link('&laquo; Previous Entries'?> <?php previous_posts_link('Next Entries &raquo;'?></p>. If the default navigation works, wp-pagenavi will work. If you do not even see the text Previous Entries or Next Entries, then something must be wrong.

WP-PageNavi does not work with custom query code like
Code: [Select]
<?php $my_query = new WP_Query('orderby=rand&showposts=5');

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline marino_yigo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: WP-PageNavi installed but not showing at all
« Reply #2 on: 14 October 2009, 16:51 »
This guy is going through the same dilema:

http://wordpress.org/support/topic/289594

Offline marino_yigo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: WP-PageNavi installed but not showing at all
« Reply #3 on: 15 October 2009, 04:21 »
What would cause the default navigation not to work?

<p class="pagination"><?php next_posts_link('&laquo; Previous Entries') ?> <?php previous_posts_link('Next Entries &raquo;') ?></p>

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,511
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WP-PageNavi installed but not showing at all
« Reply #4 on: 15 October 2009, 07:36 »
Your theme? I think you are asking at the wrong place, this type of question should be directed to the theme because the default navigation is not working in the first place.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.