Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #438295

    Is there anyway to control the previous / next order when viewing a portfolio entry inside a category? I have a category for televisions. But when viewing a television within the category, the next item might be a Radio because that is next item in the list of all portfolio items.

    #439019

    Hi squarelight!

    Please add following code to Functions.php file of your child theme in Appearance > Editor

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

    Cheers!
    Yigit

    #440454

    It didn’t work. Is there something I’m missing?

    #440812

    Hey!

    What happened when after you added the code? Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details here as a private reply.

    Regards,
    Rikard

    #442027
    This reply has been marked as private.
    #442388

    Hey!

    The login credentials are not working. Please check. A link to the portfolio item wit the “tv” category will help.

    Regards,
    Ismael

    #445245
    This reply has been marked as private.
    #446387

    Hi!

    try to replace Yigit’s code in your child theme’s functions.php with this one:

    add_filter('avia_post_nav_categories', 'use_same_category_filter');
    function use_same_category_filter($same_category)
    {
    $same_category = true;
    return $same_category;
    } 
    

    Hope this helps.

    Regards,
    Andy

    #449806

    Hi Andy, your code broke my site. Is there something missing?

    #450426

    Hi!

    Did you copy it straight from your email? Make sure that the single quotes are intact and not converted to html characters. Please use this:

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

    Cheers!
    Ismael

    #451526

    OK.. I was able to add this without it breaking the code but it still doesn’t seem to work. I have some portfolio items tagged across multiple categories. Is that the problem?

    I gave some credentials in an earlier response. Is there anyway you log in and take a closer look?

    thanks!

    #453585

    Hey!

    I am trying your credentials, and I can not log in. Please confirm they are working

    Regards,
    Basilis

    #455639

    Hi all, it works very well for me. Note that if you have an item of multi-category portfolio, it is displayed in its respective categories.
    Thank you to integrate this hotfix into a furure update…

    Regards.
    Jean

    #455898

    Hi!


    @freepixelweb
    : Glad it is working your installation. You can leave the code in the child theme’s functions.php file.

    Best regards,
    Ismael

    #456892
    This reply has been marked as private.
    #457141

    Hi!

    I created two portfolio items in your installation and then applied the “Test” category on both. Please check the post navigation on this page: http://future-forms.com/portfolio-item/test-a/

    It only filters Test A and Test B portfolio items.

    Best regards,
    Ismael

    #462139

    Thanks, Ismael

    I’m not sure you understand my problem. It works fine for one category as you have shown but all my portfolio items have multiple categories assigned to them. If I launch a portfolio-item from a specific category page, say “radios” then I would expect to only see radios when I navigate left or right.

    #462341

    Hi!

    Hmm.. Ok, that’s a problem. Unfortunately, the navigation will still filter portfolio items as long as they belong to the same category. The only workaround is to make sure that all “radio” portfolio items doesn’t have any category same as the “tv” portfolio items. If they have a common category, say “old” category, make it “old-radio” for “radio” and then “old-tv” for “tv” portfolio items. Or you can hire a freelance developer to modify the avia_post_nav function in the function-enfold.php file. Please contact codeable, I’m sure they can provide a better fix: http://kriesi.at/contact/customization

    Cheers!
    Ismael

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