zachariahC
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 |
---|---|---|---|---|---|
Toolset and WPML issue
Started by: zachariahC in: Toolset Professional Support |
|
1 | 3 | 1 month ago | |
scroll down to element ID when displaying results on another page
Started by: zachariahC in: Toolset Professional Support |
|
2 | 6 | 10 months, 1 week ago | |
adding anchor or scrolltop after manual pagnination and page reload
Started by: zachariahC in: Toolset Professional Support |
|
2 | 3 | 5 years, 1 month ago | |
Don’t show any results until filter is applied
Started by: zachariahC
in: Toolset Professional Support
Problem: I have a custom search View with several filters. I would like to hide all the results in the View until at least one filter has been applied. Solution: You can use the following custom code snippet to hide the results until some filter has been applied: function tssupp_no_initial_results( $query_results, $view_settings, $view_id ){ $target_views = array( 123,456 ); // Comma-separated list of View IDs if ( in_array( $view_id, $target_views ) ) { // if there is a search term set if ( !isset( $query_results->query['meta_query'] ) && !isset( $query_results->query['tax_query'] ) && !isset( $query_results->query['s'] ) ) { $query_results->posts = array(); $query_results->post_count = 0; $query_results->found_posts = 0; } } return $query_results; } add_filter( 'wpv_filter_query_post_process', 'tssupp_no_initial_results', 10, 3 ); |
|
3 | 6 | 5 years, 5 months ago | |
Three level nested view
Started by: zachariahC in: Toolset Professional Support |
|
2 | 5 | 5 years, 6 months ago | |
Hiding view if another view returns results
Started by: zachariahC in: Toolset Professional Support |
|
2 | 9 | 5 years, 6 months ago | |
How to filter nested views. Can't display full taxonomy for filters or results.
Started by: zachariahC in: Toolset Professional Support |
|
2 | 9 | 5 years, 6 months ago |