Steve
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 |
---|---|---|---|---|---|
Custom post urls redirect unexpectedly to site root
Started by: Steve
in: Toolset Professional Support
Problem: Custom posts are unexpectedly being redirected to the home page. Solution: Check the post type options to be sure publicly_queryable is checked. |
|
2 | 3 | 4 years, 9 months ago | |
cred commerce
1
2
Started by: Steve in: Toolset Professional Support |
|
2 | 31 | 5 years ago | |
cred commerce not putting item in cart
Started by: Steve in: Toolset Professional Support |
|
2 | 8 | 5 years, 3 months ago | |
multiple conditional statements in a view
Started by: Steve
in: Toolset Professional Support
Problem: I have a cpt with a date field in it and want to display in a view all records that either have no date at all, or where the date value is gte today() Solution: You can try as blew: Relevant Documentation: |
|
2 | 9 | 5 years, 5 months ago | |
view to show current or future events from The Events Calendar
Started by: Steve
in: Toolset Professional Support
Problem: I would like to use Views to display current or future events created by The Events Calendar, but the custom code I have in place isn't working as expected. Solution: Use the following custom filter manipulation to filter events: toolset_snippet_security_check() or die( 'Direct access is not allowed' ); /** * Filter event query to show future events */ function tssupp_filter_event_query( $view_args, $view_settings, $view_id ){ if ( in_array( $view_id, array( 6090,3499,4451,42214 ) ) ) { // Edit view IDs if ( ! isset( $view_args['meta_query'] ) ) { $view_args['meta_query'] = array(); } $today = strtotime("0:00"); $meta_query = array( 'key' => '_EventStartDate', 'value' => date("Y-m-d H:i:s", $today), 'type' => 'DATETIME', 'compare' => '>=' ); $view_args['meta_query'][] = $meta_query; } return $view_args; } add_filter( 'wpv_filter_query', 'tssupp_filter_event_query', 101, 3 ); Relevant Documentation: |
|
2 | 15 | 5 years, 6 months ago |