Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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?

    #533023

    Hey 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,
    Ismael

    #533141

    Ismael,

    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 items

    When 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”.

    #535830

    Hi!

    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,
    Ismael

    #536404

    Ismael

    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?

    #537075

    Hi!

    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!
    Ismael

    #541747

    I would like to link the taxonomy “Category” also to Portfolio Items. Now it is only used for Posts.

    #542095

    Hi!

    Alright. Please add this in the functions.php file:

    // portfolio args
    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod');
    function avf_portfolio_cpt_args_mod($args) {
    	$args['taxonomies'][] = 'category';
    	return $args;
    }

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.