i create a website for a company that sells chimneys and accessories. I made a portfolio page which only show the chimneys without the accessories. So good so far. But when i view a details page of a chimneys the “prev” and “next” navigation includes all portfolio pages and not only the chimneys. Is there any workaround?
Try to add following code to the bottom of functions.php:
$same_category = true;
I had a similar need for multiple portfolios like the OP, but when I added your code suggestion it removes the prev/next completely. Is there a way to keep that functionality but still have a portfolio per category?
I’m looking for the same solution! Separate portfolios with previous and next working only in the specific portfolio.
Will follow this topic to see if any solution becomes available.
I just noticed that Kriesi uses the function get_previous_post/get_next_post functions for the next/previous links. Unfortunately these functions rely on the get_adjacent_post() function in wp-includeslink-template.php which does not support custom taxonomies (like portfolio entries, etc.) yet. It just supports standard posts and categories if you want to select posts from the same category. So for now this won’t be possible but you can add it to the feature request list: http://www.kriesi.at/support/topic/enfold-feature-requests
A workaround would be to use a plugin from here: http://wordpress.stackexchange.com/questions/8058/ (Purchase code hidden if logged out) -taxonomy and to replace the get_previous_post/get_next_post function calls in functions-enfold.php:
$entries['prev'] = get_previous_post($same_category);
$entries['next'] = get_next_post($same_category);
with a custom next/previous page function. I guess we need to wait for WP3.7 – then the next/previous page functions should also support custom taxonomies: http://core.trac.wordpress.org/ticket/17807
The topic ‘Is it possible to create two completely seperate portfolios?’ is closed to new replies.