Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Clique › portfolio categories choice
New Landing › How can we help? › Themeforest Theme Support › Clique › portfolio categories choice
- This topic has 5 replies, 4 voices, and was last updated 7 years by Rui Guerreiro – SUPPORT.
-
Posted in: Clique
-
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' );
October 17, 2016 at 7:05 pm #297013Hi 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.
October 22, 2016 at 11:24 am #298127Hi 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 bestOctober 24, 2016 at 6:16 pm #298398Hi,
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.January 9, 2017 at 10:40 am #309251David,
if I buy Cardinal, can I easily filter the contents through categories?January 9, 2017 at 10:54 am #309253Hi,
Yes you can, those newest themes are much more powerful.
-Rui
-
Posted in: Clique
You must be logged in and have valid license to reply to this topic.