Jump to content

Search the Community

Showing results for tags 'exclude'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. Hi we would like to globally exclude categories from appearing in the carousel. we have about 30 categories and there are 8 that we need to exclude. function exclude_category( $query ) { if ( $query->is_home ) { $query->set( 'cat', '-1' ); } } add_action( 'pre_get_posts', 'exclude_category' ); i found this on another thread here and was wondering if it could be tailored to achieve the exclusion in carousels. Thanks