SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Wp-Pagenavi not working
-
May 24, 2009, 20:29 #1
Wp-Pagenavi not working
When I follow the directions for the Wp-Pagenavi Plugin, I place the code
Code:<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
The link is http://www.top-country-videos.com if it matters.
Thanks for any help!
Update: I sort of getting it working by placing the code in the navigation area, but this isn't in line with what the directions for installation say at http://lesterchan.net/wordpress/readme/wp-pagenavi.html so if anyone has experience with this, please help me out, thanks.
I will remove the footer code for the time being even though the instructions say that the code has to go there.
Thanks.Last edited by CWebguy; May 24, 2009 at 20:35. Reason: update
-
May 24, 2009, 21:20 #2
- Join Date
- Aug 2000
- Location
- Philadephia, PA
- Posts
- 20,578
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
The footer isn't the only place you can put the code, it's just that Lester can't write less generic instructions or they wouldn't work in all themes. You can probably put the code anywhere that isn't within The Loop.
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
-
May 24, 2009, 21:22 #3
Ok, thanks Dan, so it is ok to place anywhere? I will assume so based on your answer.
Thanks.
-
May 24, 2009, 21:26 #4
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
I think it depends on what theme you're using. For example, the footer.php file that comes with WordPress in the Classic theme
PHP Code:<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!-- begin footer -->
</div>
<?php get_sidebar(); ?>
<p class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p>
</div>
<?php wp_footer(); ?>
</body>
</html>
PHP Code:<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<hr />
<div id="footer">
<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
<p>
<?php bloginfo('name'); ?> is proudly powered by
<a href="http://wordpress.org/">WordPress</a>
<br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
</p>
</div>
</div>
<!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ -->
<?php /* "Just what do you think you're doing Dave?" */ ?>
<?php wp_footer(); ?>
</body>
</html>
I'd say put it where you need to and style it accordingly. Validate the page to make sure you didn't break tag nesting and you should be fine.Big Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
-
May 24, 2009, 21:27 #5I'd say put it where you need to and style it accordingly. Validate the page to make sure you didn't break tag nesting and you should be fine.
By the way, they need to include this plugin in Wordpress, it's pretty good!
Thanks,
-
May 25, 2009, 00:17 #6
How about in your template index page, I always put that code there.
Bookmarks