Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #610165

    Hello
    i renew the support to help me on this problem :
    i create a lot of categories for portfolio . and i create at the end of page i display the item portfolio like :

    but when i open a item .. i have the navigation on the right and left… but it not respect the category but all items in portfolio..

    in this case, i have 8 portfolio but i can skip all.. Is it possible to filter only this category ?

    Hope you undesrtand my question ?
    thanks

    #610192

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #610260

    Yes.. of course
    thanks a lot

    #610462

    Hey!

    Can you post a screenshot/mockup of what would you want to achieve?

    Best regards,
    Josue

    #611044

    Hi,
    Yes when i’m visiting this page..

    we have 3 items of portfolio : this portfolio is the category : http://deveden.com/caregeneva/portfolio_entries/lipofilling/

    with ONLY 3 pictures..

    BUT the problem, is when i open a item to display the details. we have the arrows to display the next items but we can display previious or next one but of ALL categories.. My client want to display only the items of the category..
    you see what i mean ?
    thanks
    screenshot :
    http://www.awesomescreenshot.com/image/1154757/4f18ed9343ccfc187fa0745caaae9c20

    #611121

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings['same_category'] = true;
    return $settings;
    }

    Cheers!
    Josue

    #611262

    Hello
    So i copy the function but it seems that is not working :-(
    thanks

    functions.php
    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */
    add_theme_support(‘avia_template_builder_custom_css’);

    add_filter(‘avf_builder_boxes’,’enable_boxes_on_posts’);
    function enable_boxes_on_posts($boxes) {
    $boxes[] = array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’normal’, ‘expandable’=>true );
    $boxes[] = array( ‘title’ =>__(‘Layout’,’avia_framework’ ), ‘id’=>’layout’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’side’, ‘priority’=>’low’);
    $boxes[] = array( ‘title’ =>__(‘Additional Portfolio Settings’,’avia_framework’ ), ‘id’=>’preview’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’normal’, ‘priority’=>’high’ );

    return $boxes;
    }
    add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings[‘same_category’] = true;
    return $settings;
    }
    ?>

    #611783

    Hello Josue
    Hope you found a solution for us …
    regards

    #611830

    Hi!

    It is working but make sure you select only the children category in each portfolio item – http://screencast.com/t/a4n0kn9E

    Cheers!
    Josue

    #611844

    Exact !! i don’t saw that my collaborator click also on the parent category !!! ..so perfect it s working
    thanks so much

    #612255

    You are welcome, glad to help :)

    Regards,
    Josue

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