Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 29, 2010, 09: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, 06:37 AM
juggledad's Avatar
juggledad
 
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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 {
  #3  
Old Jan 1, 2011, 05: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 12, 2010 11:09 PM
"Atahualpa theme options" link missing from Site admin page mogf01 Multisite 6 Sep 2, 2010 06:05 PM
"Page links to" plugin alexp999 Plugins & Atahualpa 2 Jan 21, 2010 03:51 AM
Plugin "User Photo" => Where to put the code in Atahualpa? nudgens Plugins & Atahualpa 2 Nov 26, 2009 07:31 AM


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


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