Tagged: navigation, portfolio items
-
AuthorPosts
-
November 9, 2015 at 10:53 am #532456
I have a few questions related to the usage of Portfolio Items.
1) Would it be possible to make the the taxonomy of “Category”, which is used for Post also available for Portfolio Items, as I would like to merge these two together?
2) Would it be possible to limited the post navigation feature to the selected Portfolio-Categories?
I have seen this article: http://kriesi.at/documentation/enfold/remove-post-navigation-for-a-post-type/ – But I don’t want to remove it, but apply a filter to navigate thru items with the same Portfolio-Category or categories.3) Would it be possible to remove or to replace standard slug of portfolio items?
Now it creates “mywebsite/portfolio/portfolio-name I dislike the fact that all my entries are getting this “portfolio” – or my own defined name here.
For me it is unclear what the option “Portfolio Categories Base” is doing. I don’t know where and how to activate this option. And what is the impact to my URL’s?Would it be possible to create a Custom Field that I add to PortFolio Items that will be used to replace the default slug name?
November 10, 2015 at 4:51 am #533023Hey stedia!
Thank you for using Enfold.
1.) Try to use the is_tax function instead. Something like this:
function no_post_nav($entries) { if(is_tax('portfolio_entries', array(1, 2))) $entries = array(); return $entries; } add_filter('avia_post_nav_entries','no_post_nav');
1 and 2 is the id of the portfolio categories.
2.) You can modify the portfolio base permalink in the Settings > Permalink pane. Look for the Portfolio Items Base. Unfortunately, it’s not possible to use a custom field to change slug without proper modifications. You can hire a freelance developer here: http://kriesi.at/contact/customization
Regards,
IsmaelNovember 10, 2015 at 11:14 am #533141Ismael,
If I understand the above logic correctly, I have to replace the 1 and 2 for the Id’s I want to use for the navigation.
But, what I would like to establish is that the prev/next is only working for the Portfolio-categiories where the item belongs to.
For example:
Portfolio category : Service – 5 items
Portfolio category : Products: – 20 itemsWhen I open a Service Item – the pre/next is only working for the 5 items that all have the Portfolio-category “Service”.
When I open a Products Item – the pre/next is only working for the 20 items that all have the Portfolio-category “Products”.November 14, 2015 at 11:32 am #535830Hi!
Thank you for the info. From what I understand, you need the post navigation to filter items from the same category. Please use this instead:
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }
Regards,
IsmaelNovember 16, 2015 at 10:11 am #536404Ismael
This is now working for the Portfolio categories!! Top
Would it be possible to activate the Category – that is used for Posts – also for Portfolio items ? and could I also filter on that too then?
November 17, 2015 at 5:09 am #537075Hi!
Great! Regarding the category, I’m sorry but I don’t think that’s possible or maybe I just don’t understand you clearly. Could you please elaborate a little further?
Cheers!
IsmaelNovember 24, 2015 at 4:24 pm #541747I would like to link the taxonomy “Category” also to Portfolio Items. Now it is only used for Posts.
November 25, 2015 at 4:01 am #542095 -
AuthorPosts
- You must be logged in to reply to this topic.