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.phpsSo 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('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?></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.