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 » Post-Kicker, -Byline & -Footer »

[SOLVED] Post navigation alphabetically


  #1  
Old Dec 2, 2011, 02:00 PM
fullmetalgirl
 
32 posts · Aug 2010
Al my posts are alphabetically, now i would like to see the navigation in single post pages to show alphabetically aswell.

Is there a way?
note that not all posts are in the same catagorie, but even then they should be alphabetically.

Help would be much appreciated
  #2  
Old Dec 2, 2011, 05:11 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Be default, posts show in the order they were published. Have you used a page template to make changes?
What version of Atahualpa and WP?
What is the url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 2, 2011, 07:15 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
There are plugins that will display posts alphabetically as one of the options. Link Category Posts is the first that comes to mind.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #4  
Old Dec 2, 2011, 11:35 PM
fullmetalgirl
 
32 posts · Aug 2010
I used:
Post Sorting Reloaded plugin to alphabetically order posts in categorie pages, I'm also using link category post to get lists of all my categories alphabetically on a "view all post" page.
but the navigation on 1 post on page pages is still not alphabetically.

I've got the most recent atahualpa and wp and i didn't change the page template (as far as i can remember). Here's an url that shows what im talking about:
http://www.bushcraftvereniging.nl/wiki/pemmican/

You see the post "Pemmican"
The next is trapper and the previous is bannocks.. but there should be a lot between the b and p.
(note that this page was only created 3/4 days go and is still very empty)

Last edited by fullmetalgirl; Dec 2, 2011 at 11:49 PM.
  #5  
Old Dec 3, 2011, 06:04 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
The next previous links are still based on chronological order. I just did a Google search for "wordpress next previous alphabetical" and came up with a link that sent me to this plugin which might be what you need.

Often a quick Google search or a search at wordpress.org will help with things along these lines.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Dec 3, 2011, 06:57 AM
fullmetalgirl
 
32 posts · Aug 2010
To make that work i need to find the "next_post_link" and "previous_post_link " tags...
it said to be in single.php but i can't seem to find it?

this is what i need to put "somewhere" i guess:
HTML Code:
<?php next_post_link_plus( array('order_by' => 'post_title') ); ?>
  #7  
Old Dec 3, 2011, 07:17 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Atahualpa sets up the next/previous links via calls to the wordpress functions 'next_post_link' and 'previous_post_link' in bfa_nexr_previous_links.php

Note there are several places it calls them based on the type of page and it uses the options from ato->Next/Previous Navigation settings
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Dec 3, 2011, 07:25 AM
fullmetalgirl
 
32 posts · Aug 2010
The single post pages are the only ones that mather to me,

HTML Code:
/* Next/Previous POST Links (on single post pages)
   in next_post_link "next" means newer posts
   Available parameters for $location: Top, Middle, Bottom. Default: Top  */
function bfa_next_previous_post_links($location = "Top") {

global $bfa_ata, $homeURL;

	if ( is_single() AND strpos($bfa_ata['location_single_next_prev'],$location) !== FALSE AND
	
    // don't display on WP Email pages
    intval(get_query_var('email')) != 1 )  {

		echo '<div class="clearfix navigation-'.strtolower($location).'">
		<div class="older' . ($bfa_ata['home_single_next_prev'] != '' ?
        '-home' : '') . '">';

		if ($bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
				previous_post_link($bfa_ata['single_next_prev_older'], '%title', TRUE);
			} else { 
				previous_post_link($bfa_ata['single_next_prev_older']);
			}
		} else {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {  
				next_post_link($bfa_ata['single_next_prev_newer'], '%title', TRUE);
			} else { 
				next_post_link($bfa_ata['single_next_prev_newer']);
			}
		}
		
		echo ' &nbsp;</div>';
		if ($bfa_ata['home_single_next_prev'] != '') { 
			echo '<div class="home"><a href="' . $homeURL . '/">' .
			$bfa_ata['home_single_next_prev'] . '</a></div>';
		}
		echo '<div class="newer';
		if ($bfa_ata['home_single_next_prev'] != '') {
			echo '-home';
		}
		echo '">&nbsp; ';

		if ($bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
				next_post_link($bfa_ata['single_next_prev_newer'], '%title', TRUE);
			} else { 
				next_post_link($bfa_ata['single_next_prev_newer']);
			}
		} else {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
				previous_post_link($bfa_ata['single_next_prev_older'], '%title', TRUE);
			} else { 
				previous_post_link($bfa_ata['single_next_prev_older']);
			}
		}

		echo '</div></div>';
	}
}
Is the code,

changing
HTML Code:
previous_post_link($bfa_ata['single_next_prev_older']);
to
HTML Code:
previous_post_link_plus( array('order_by' => 'post_title') );
doesnt seem to work.
  #9  
Old Dec 3, 2011, 08:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
previous_post_link_plus
what widget is that from?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Dec 3, 2011, 08:13 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
previous_post_link_plus
what widget is that from?

I installed 'Next/Previous Post Link Plus for WordPress' ad it worked for me - make sure you disable andy caching plugins you have.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Dec 3, 2011, 08:13 AM
fullmetalgirl
 
32 posts · Aug 2010
Quote:
Originally Posted by lmilesw
The next previous links are still based on chronological order. I just did a Google search for "wordpress next previous alphabetical" and came up with a link that sent me to this plugin which might be what you need.

Often a quick Google search or a search at wordpress.org will help with things along these lines.
It's from the above suggested plugin.
If there's a way to not use this plugin i would prefere it, but using it is hard enough aswell.
what would be caching plugins?

Last edited by fullmetalgirl; Dec 3, 2011 at 08:16 AM.
  #12  
Old Dec 3, 2011, 10:22 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That is the plugin I tried it with and it worked fine.
It look like you DO NOT have a caching plugin active (like w3 total cache)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Dec 3, 2011, 02:31 PM
fullmetalgirl
 
32 posts · Aug 2010
I simply got the plugin by searching for it at wp-admin panel and letting wp install it. Install was succesfull, But nothing happened. Do i need to do anything extra?
  #14  
Old Dec 3, 2011, 03:18 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well you have to make the changes to bfa_nexr_previous_links.php and make sure to make them to the next AND previous
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #15  
Old Dec 3, 2011, 03:29 PM
fullmetalgirl
 
32 posts · Aug 2010
I tried that the way i explained a few posts earlier.. but i think im doing something wrong?
is it possible to show me what i need to replace with what? Or maybe show me what you did?
  #16  
Old Dec 3, 2011, 06:47 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Here is what I changed you can see the commented out lines
HTML Code:
/* Next/Previous POST Links (on single post pages)
   in next_post_link "next" means newer posts
   Available parameters for $location: Top, Middle, Bottom. Default: Top  */
function bfa_next_previous_post_links($location = "Top") {

global $bfa_ata, $homeURL;

	if ( is_single() AND strpos($bfa_ata['location_single_next_prev'],$location) !== FALSE AND
	
    // don't display on WP Email pages
    intval(get_query_var('email')) != 1 )  {

		echo '<div class="clearfix navigation-'.strtolower($location).'">
		<div class="older' . ($bfa_ata['home_single_next_prev'] != '' ?
        '-home' : '') . '">';

		if ($bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
previous_post_link_plus( array('order_by' => 'post_title') );
//				previous_post_link($bfa_ata['single_next_prev_older'], '%title', TRUE);
			} else { 
previous_post_link_plus( array('order_by' => 'post_title') );
//				previous_post_link($bfa_ata['single_next_prev_older']);
			}
		} else {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
next_post_link_plus( array('order_by' => 'post_title') );				//next_post_link($bfa_ata['single_next_prev_newer'], '%title', TRUE);
			} else { 
next_post_link_plus( array('order_by' => 'post_title') );				//next_post_link($bfa_ata['single_next_prev_newer']);
			}
		}
		
		echo ' &nbsp;</div>';
		if ($bfa_ata['home_single_next_prev'] != '') { 
			echo '<div class="home"><a href="' . $homeURL . '/">' .
			$bfa_ata['home_single_next_prev'] . '</a></div>';
		}
		echo '<div class="newer';
		if ($bfa_ata['home_single_next_prev'] != '') {
			echo '-home';
		}
		echo '">&nbsp; ';

		if ($bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right') {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
next_post_link_plus( array('order_by' => 'post_title') );				//next_post_link($bfa_ata['single_next_prev_newer'], '%title', TRUE);
			} else { 
next_post_link_plus( array('order_by' => 'post_title') );				//next_post_link($bfa_ata['single_next_prev_newer']);
			}
		} else {
			if($bfa_ata['single_next_prev_same_cat'] == "Yes") {
previous_post_link_plus( array('order_by' => 'post_title') );
//previous_post_link($bfa_ata['single_next_prev_older'], '%title', TRUE);
			} else { 
previous_post_link_plus( array('order_by' => 'post_title') );
//				previous_post_link($bfa_ata['single_next_prev_older']);
			}
		}

		echo '</div></div>';
	}
}

/* Next/Previous Comments Links.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #17  
Old Dec 4, 2011, 01:46 AM
fullmetalgirl
 
32 posts · Aug 2010
I copied past yours and this is what i got:

Quote:
Fatal error: Call to undefined function next_post_link_plus() in /home/******/domains/bushcraftvereniging.nl/public_html/wiki/wp-content/themes/atahualpa/functions/bfa_next_previous_links.php on line 111
  #18  
Old Dec 4, 2011, 01:53 AM
fullmetalgirl
 
32 posts · Aug 2010
I found the problem!

Thank you very much!!!
I had a wrong version of the plugin installed. It seems to work now!

thanks for putting up with me.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Next/Previous Single Post Navigation samij0 Excerpts, Read more, Pagination 35 Aug 4, 2015 10:33 AM
Display posts alphabetically for one category, chronologically for other categories spencer Atahualpa 3 Wordpress theme 4 Jul 16, 2014 09:01 AM
[SOLVED] Substitute Post name with &quot;Next Post&quot; and &quot;Previous Page&quot; in post navigation Alternateroute Center area post/pages 2 Nov 18, 2010 08:15 PM
[SOLVED] How to sort posts alphabetically by post title in categories StudioGal Page & Category Menu Bars 2 May 9, 2010 04:40 PM
[SOLVED] Hide next/previous navigation bar if there is just one post in a category... chiara7 Excerpts, Read more, Pagination 6 Mar 7, 2010 04:42 PM


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


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