Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   [SOLVED] How to use "WP Page Numbers" plugin with Atahualpa 3.5.3 (http://forum.bytesforall.com/showthread.php?t=11929)

Steve41 Dec 29, 2010 09:24 PM

[SOLVED] How to use "WP Page Numbers" plugin with Atahualpa 3.5.3
 
I want to use numbered links instead of "Older - Newer Entries" under category listings.
The plugin, WP Page Numbers - found here - requires that I do the following:
Quote:

Instructions - Code to add to your theme

Add the code where you find previous_post() and next_post() functions. If you can't find these tags, place the code between endwhile; and endif; in the_loop.
Code to add in your theme
Code:

<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
Advanced (optional) settings

Syntax: wp_page_numbers($start, $end); Example: wp_page_numbers("<div class='start'>", "</div>");
Where would I add this to the theme? Searched the forums, but found nothing directly related to what I want. To only show on category pages, I guess I will need to wrap the function in a "is_category()" call?

Appreciate any help or code to do this. Thanks.

juggledad Dec 30, 2010 06:37 AM

edit bfa_next_previous_links.php and change lins 92-97 from
HTML Code:

                if ( function_exists('wp_pagenavi') ) {

                        echo '<div class="wp-pagenavi-navigation">'; wp_pagenavi();
                        echo '</div>';
       
                } else {

to
HTML Code:

                if ( function_exists('wp_pagenavi') ) {

                        echo '<div class="wp-pagenavi-navigation">'; wp_pagenavi();
                        echo '</div>';
                }
                elseif (function_exists('wp_page_numbers')) { wp_page_numbers();}
                else {


Steve41 Jan 1, 2011 05:11 AM

A belated thank you for that code, it works perfectly. Much appreciated :)


All times are GMT -6. The time now is 05:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.