Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165984

    Hello,

    i would like to exclude a portfolio item category from the post nav (arrwos to the left/right of the page). I used a unique portfolio category (which is hidden in every portfolio slider, except the client slider) to organize client profiles. I used a hidden portfolio category, since the new logo/partner item doesn’t fit my purpose. As you can see on the standard portfolio item, the previous post button shows a client, which shouldn’t occure. Vis-a-vis on a client item it would show my portfolio items. I would like to use the post nav, since it’s a really great feature, but can’t as long as I can’t fix this behaviour.

    Standard Portfolio Item: http://roberthunecke.com/redesign/portfolio-items/coffee_beans/
    Client Slider Example: http://roberthunecke.com/redesign/portfolio-items/mmt/

    Thanks for your support!

    kind regards,
    Robert

    #166440

    Hey rhunecke!

    Edit functions-enfold.php, find this code:

     $entries['prev'] = get_previous_post($same_category);
            $entries['next'] = get_next_post($same_category);

    Replace it with:

     $entries['prev'] = get_previous_post($same_category, 'CATEGORY ID HERE');
            $entries['next'] = get_next_post($same_category, 'CATEGORY ID HERE');

    Add the category id of the category that you want to exclude.

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Exclude items from Portfolio Post Nav (Arrows on the left/right)’ is closed to new replies.