lolaz
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
excluding terms from taxonomy using wpv-filter-query
Started by: lolaz in: Toolset Professional Support |
2 | 13 | 6 years, 9 months ago | ||
[wpv-control] drop down not behaving as expected
Started by: lolaz in: Toolset Professional Support |
2 | 9 | 6 years, 9 months ago | ||
Conflict with avada theme after updating to latest version of wordpress
Started by: lolaz in: Toolset Professional Support |
2 | 7 | 6 years, 9 months ago | ||
Calling custom user checkbox fields
Started by: lolaz
in: Toolset Professional Support
Problem: Solution: <?php echo(types_render_usermeta( 'field-slug', array( 'arg1' => 'val1', 'arg2' => 'val2' ) )); ?> Couple more examples: <?php echo types_render_usermeta( 'my-checkboxes', array( "user_id" => $curauth->ID ) ); ?> types_render_field( "my-checkboxes", array( "separator" => ", " ) ) Relevant Documentation: - Old ticket: https://toolset.com/forums/topic/how-to-display-types-user-fields-on-author-page/ |
2 | 5 | 7 years, 1 month ago | ||
Excluding a taxonomy from a view using a filter hook
Started by: lolaz
in: Toolset Professional Support
Problem: Solution: Method 2: Achieve this through code using 'wpv_filter_query' something like given below, please note you would need to modify it for your usage. add_filter( 'wpv_filter_query', 'exclude_terms_func', 10, 3 ); function exclude_terms_func($query, $setting, $views_ID) { if($views_ID == 3346) // your view id { $query['tax_query'][] = array( 'taxonomy' => 'book-author', // taxonomy name 'field' => 'slug', 'terms' => array( 'adam', 'adam2016' ), // term slug for exclude 'operator' => 'NOT IN' ); $query['tax_query']['relation'] = 'AND'; } return $query; } ==> Whereas 'book-author' is the Taxonomy name and 'adam' is the slug of the term that you want to exclude. Relevant Documentation: |
2 | 6 | 7 years, 3 months ago |