Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #393214

    Hi Guys,

    Me again! Using again your amazing template for a new client.

    I’m using the portfolio to display different items like article from press but also collections of clothes.

    I’ve set up my portfolio items with different categories :
    category 1
    item 1
    item 2

    Category 2
    item 1
    item 2

    On my page “press” i display a grid of “press” items (category 1) which display all the portfolio items of the category 1. Perfect. I click on 1 item, I arrive on the portfolio page (not using the ajax way, just the normal one). Then I can use the controllers on right or left to go to another item.

    My problem is with the controllers I don’t only display the items of the category but all items from all categories.
    Displaying the clothes items when someone click on press is not what I want ;o)

    is there a way to display only the items of each category, not all items?

    Not sure my explanation are clear ;o)

    Thanks guys!

    #393564

    Hey eldrico!

    Thank you for using Enfold.

    You can add this on functions.php to filter the same category:

    add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' );
    function enfold_customization_same_cat( $s ) {
    	$s['same_category'] = true;
    	return $s;
    }

    Regards,
    Ismael

    #398402

    Thanks Ismael,

    I’ll check that. Sorry I didn’t recieve the automatic reply… weird.

    I’ll let you know if it works!

    Cheers!

    Eldrico ;o)

    #398660

    Hi!

    Did you have any luck with Ismaels code?

    Best regards,
    Rikard

    #472075

    Sorry guys for the delay, I was working on other projects in the same time.

    I’ve just check and it works perfectly! Many thanks to you guys for your help and for being so fast in your help!

    Optional question: any way to restart the loop when I reach the last portfolio.
    After last portfolio, instead of nothing, is it possible to have the first portfolio item of the category?

    Thanks again guys and you can close to topic (with an answer or not to the optional question).
    Eldrico

    #472556

    Hey!

    It would take a lot of time and code to complete and would have to be considered custom work. It would be best to hire a freelancer to help you out with this customization or you could create a feature request here, https://kriesi.at/support/enfold-feature-requests/, and if it gets enough interest then we may see an option get added in a future update.

    Best regards,
    Elliott

    #546505

    Hi Elliott,

    You can close this topic if you want.

    Thanks,

    Eldrico

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio Categories’ is closed to new replies.