abbyJ-2
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 |
|---|---|---|---|---|---|
|
Show All Related Post Type Items
Started by: abbyJ-2 in: Toolset Professional Support |
|
2 | 3 | 3 years, 7 months ago | |
|
Sorting by Custom Taxonomy
Started by: abbyJ-2 in: Toolset Professional Support |
|
2 | 5 | 3 years, 7 months ago | |
|
Related Post Types & Views
Started by: abbyJ-2
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
|
2 | 13 | 3 years, 8 months ago | |
|
Children + Parent Taxonomy on Searches
Started by: abbyJ-2
in: Toolset Professional Support
Problem: Solution:
add_filter( 'wpv_filter_taxonomy_frontend_search_get_terms_args', 'prefix_modify_get_terms_args', 10, 3 );
function prefix_modify_get_terms_args( $args, $taxonomy, $view_id ) {
if ( $view_id == 1223 && $taxonomy == "topic") {
$args['parent'] = 0;
}
return $args;
}
Whereas for taxonomy views, prefer the wpv_filter_taxonomy_query hook. Something like:
add_filter( 'wpv_filter_taxonomy_query', 'prefix_modify_taxonomy_view_args', 99, 3 );
function prefix_modify_taxonomy_view_args( $tax_args, $view_settings, $view_id ) {
if ( $view_id == 1201 ) {
$tax_args['parent'] == 0;
}
return $tax_args
}
Relevant Documentation: |
|
2 | 7 | 4 years, 4 months ago | |
|
Conditionals not working
Started by: abbyJ-2
in: Toolset Professional Support
Problem: I have a conditional that is not working as expected on all posts. Solution: Change the conditional to test for a taxonomy term instead of a custom field in this case. |
|
2 | 5 | 4 years, 6 months ago | |
|
Styling View/Checkbox Options
Started by: abbyJ-2 in: Toolset Professional Support |
|
2 | 8 | 4 years, 6 months ago |