nabils
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 |
---|---|---|---|---|---|
Shortcode to check if a view has output
Started by: nabils
in: Toolset Professional Support
Problem: I need to know if a View will have any results Solution: A custom shortcode can be used to count the results of any View: add_shortcode( 'ts_view_has_results', 'ts_view_has_results_func'); function ts_view_has_results_func($atts) { $view_id = intval($atts['viewid']); $results = get_view_query_results( $view_id ); return count($results); } Use the shortcode - replace 123 with the View ID of your choice: [ts_view_has_results viewid="123"] Relevant Documentation: |
2 | 5 | 7 years, 6 months ago | ||
Getting the label of generic checkboxes in php
Started by: nabils
in: Toolset Professional Support
Problem: Solution: |
2 | 5 | 7 years, 7 months ago |