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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Clique
  • #296660
    jacques
    Member
    Post count: 31

    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' );
    #297013
    David Martin – Support
    Moderator
    Post count: 20834

    Hi there,

    Unfortunately that customisation is beyond our scope of support as it is more work than a small customisation.

    We only provide support for theme issues, and at times basic customisations.

    While we’d love to be able to support every customisation request, we simply don’t have the time.

    We recommend that you seek a freelance developer if you need to make that customisation.

    #298127
    jacques
    Member
    Post count: 31

    Hi david,
    I work with 5 swiftideas themes, so, I am used to have this kind of options. In fact, it’s not an “option”, it’s like why I’m working with swiftideas themes.
    If you don’t have time, I really recommend that you seek a freelance developer to add that “customisation”. because it’s essential. 🙂 ok.. I’m joking, but it’s true, it’s really important and natural to have this possibility in this kind of theme.
    Tks for the reply… The best

    #298398
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I

    Unfortunalty Clique is not as advanced as our newer themes and does not currently have this level of customisation that our new themes do.

    You need to edit the core theme files:

    Inside: /themes/clique/includes/sf-functions.php locate this:

    		$portfolio_args=array(
    			'post_type' => 'portfolio',
    			'post_status' => 'publish',
    			'paged' => $page,
    			'portfolio-category' => $category_slug,
    			'posts_per_page' => $item_count
    			);
    		$portfolio_items = new WP_Query( $portfolio_args );

    You can use the WP_Query parameter to exclude certain categories by their ID prefixed with a minus -, ex: 'cat' => '-2,-6,-17,-38'. Ex:

    		$portfolio_args=array(
    			'post_type' => 'portfolio',
    			'post_status' => 'publish',
    			'paged' => $page,
    			'portfolio-category' => $category_slug,
    			'posts_per_page' => $item_count,
                            'cat' => '-2,-6,-17,-38'
    			);
    		$portfolio_items = new WP_Query( $portfolio_args );

    Thanks,
    David.

    #309251
    theFencer
    Member
    Post count: 27

    David,
    if I buy Cardinal, can I easily filter the contents through categories?

    #309253
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Yes you can, those newest themes are much more powerful.

    -Rui

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