Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

[SOLVED] How to use "WP Page Numbers" plugin with Atahualpa 3.5.3


  #1  
Old Dec 29, 2010, 10:24 PM
Steve41
 
10 posts · Dec 2010
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.
  #2  
Old Dec 30, 2010, 07:37 AM
juggledad's Avatar
juggledad
 
23,684 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 {
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 1, 2011, 06:11 AM
Steve41
 
10 posts · Dec 2010
A belated thank you for that code, it works perfectly. Much appreciated

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alt Text For "Comment" "Tag" and "Category" gifs jasebishop Atahualpa 3 Wordpress theme 0 Nov 13, 2010 12:09 AM
"Atahualpa theme options" link missing from Site admin page mogf01 Multisite 6 Sep 2, 2010 07:05 PM
"Page links to" plugin alexp999 Plugins & Atahualpa 2 Jan 21, 2010 04:51 AM
Plugin "User Photo" => Where to put the code in Atahualpa? nudgens Plugins & Atahualpa 2 Nov 26, 2009 08:31 AM


All times are GMT -6. The time now is 07:27 PM.


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