If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
April 27, 2013 at 7:55 am #22531
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?
Thanks.April 27, 2013 at 9:41 am #116109
Try to add following code to the bottom of functions.php:
$same_category = true;
PeterApril 30, 2013 at 8:57 am #116110
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?
MattApril 30, 2013 at 9:02 am #116111
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.May 1, 2013 at 12:51 am #116112May 1, 2013 at 6:38 am #116113
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/17807May 1, 2013 at 9:37 am #116114
The topic ‘Is it possible to create two completely seperate portfolios?’ is closed to new replies.