Log in to support

portfolio categories choice

Landing How can we help? Themeforest Theme Support Clique portfolio categories choice

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Clique
  • Post count: 31
    October 14, 2016 at 11:20 pm #296660

    hi, I think is not possible to choose multiple categories on portforlio page...
    I want to exclude on or 2 categories on my homepage and show them on an another page... I saw this code below to exclude one category from all portfolio pages but I want this only on homepage, is it possible?
    Add a simple option to select categories on portfolio page will be great...
    Many tks.

    function search_filter_get_posts($query) {
        if ( !$query->is_search )
            return $query;
    
        $taxquery = array(
            array(
                'taxonomy' => 'portfolio-category',
                'field' => 'slug',
                'terms' => array( 'cat-name' ),
                'operator'=> 'NOT IN'
            )
        );
    
        $query->set( 'tax_query', $taxquery );
    
    }
    add_action( 'pre_get_posts', 'search_filter_get_posts' );
    Post count: 20834
    October 17, 2016 at 7:05 pm #297013

    Replies only viewable for logged in users

    Post count: 31
    October 22, 2016 at 11:24 am #298127

    Replies only viewable for logged in users

    Post count: 20834
    October 24, 2016 at 6:16 pm #298398

    Replies only viewable for logged in users

    Post count: 27
    January 9, 2017 at 10:40 am #309251

    Replies only viewable for logged in users

    Post count: 25779
    January 9, 2017 at 10:54 am #309253

    Replies only viewable for logged in users

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register