Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 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
 
23,765 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, 05:11 AM
Steve41
 
10 posts · Dec 2010
A belated thank you for that code, it works perfectly. Much appreciated

Bookmarks



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 04:56 AM.


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