Filter next/previous navigation by category
Is there a way to filter the next/previous navigation so that when you read a full post, only posts in that category show up in the navigation?
|
What would want to do if the post was in multiple categories?
|
For this particular site that's not an issue. Can it be done?
|
it looks like the theme is using the standard WordPress nav code (wp-inlcudes/link-template.php)
so you might be able to hack at that and change how it is getting the next and previous links |
Hello JuggleDad
What a job you've got processing all these queries! I think this thread is something like the problem I'm having with Ata navigation and multiple post categories. When a post has multiple categories, the bfa_navigation code chooses the 'default' category (with the lowest ID). Choosing any other category from the site menubar (other than the default) means that the navigation does not show the other posts in that category. I'm using the latest version of everything, and have tried "sCategory Permalink" to change the default category, but to no avail. Is there any modification I can make to Atahualpa ? Kind regards. |
Are you trying to say that if you browse a category, the next/previous could take you into a new category?
|
If I use the Category menu bar and choose say, COUNTRY->India, I will get a list of say 7 posts. If I click a post title, the next / previous navigation bar might display a post under the category COUNTRY->New Zealand, rather than one of the 6 other posts in India. The clicked Indian post & NZ post are both probably in the category, say, DAYS->5-10days.
The reason is the default permalink is the lowest ID category. Do you understand? |
so in this case are India and New Zealand, children of the category Countries?
need the URL because I can't recreate this. |
Sorry JuggleDad I thought you had the site from my login.
1. www.travelhorizonstyle.com.au 2. choose Country India (from the horizontal category bar or from the Select Tours widget) 3. click "Romantic Palaces & Forts" 4. note the 'breadcrumb' thinks we are in 'MAX PASSENGER SIZE' and that the previous tour in that category is 'Best of New Zealand'.... So step 2, is not having any affect because of the 'default' category. It stems from being able to assign multiple categories to a post, but the next/previous navigation is not able to detect which category was chosen. BTW "Paul" I have paid a donation but it is not coming up on my login, probably because the credit card was in a different name. |
What is the plugin you are using to get the widget with the category links?.
the link in the sidebar is taking you to HTML Code:
http://travelhorizonstyle.com.au/days/10-15days-days/romantic-palaces-forts/ |
I'm using "Multiple Category Selection Widget" on the right sidebar and if you choose the category for India, then the category page called "http://travelhorizonstyle.com.au/categories/385/search_type/and" appears. If you choose Country+India from the menu bar then the category page "http://travelhorizonstyle.com.au/category/country/india/" appears. Either way, when you click the post, "Romantic Castles & Forts" it does not display the permalink under "\country\india\"..., but the lowest category ID "\days\10-15days\"... As this single post has multiple categories.
I think what you're saying is that it doesn't matter which category you choose when you are in a single page, the next/previous navigation goes to the next post in the database.. Just wondering if there is anyway for Next/Prev navigation function to recognise which category was chosen, but I'm not hopeful on this one. Wordpress does not seem to cope with a single post in multiple categories very well. BTW, do you know why my donation is not showing up against my name when I sent it after logging in? Not a high priority of course, so don't worry too much. |
Quote:
|
Added an RFE to http://forum.bytesforall.com/showthread.php?t=3650
|
see http://forum.bytesforall.com/showthr...vious+category post#3 for a possible solution
|
All times are GMT -6. The time now is 11:23 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.