Franco Calcagni
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 |
|---|---|---|---|---|---|
|
Add a block with OpenStreet Map
Started by: Franco Calcagni in: Toolset Professional Support |
|
2 | 5 | 4 years, 1 month ago | |
|
Creating a content template using blocks for old post types
Started by: Franco Calcagni in: Toolset Professional Support |
|
2 | 7 | 4 years, 1 month ago | |
|
Receive and send data from external webservices
Started by: Franco Calcagni in: Toolset Professional Support |
2 | 2 | 4 years, 6 months ago | ||
|
Filtering a view with post only from last 4 months
Started by: Franco Calcagni
in: Toolset Professional Support
Problem: Solution: The best way to do this is by using the filter below.
function tssupp_date_filter( $query_args, $view_settings, $view_id ){
if ( 123 == $view_id ) { // Edit View ID
$query_args['date_query'] = array(
array(
'column' => 'post_date_gmt',
'after' => '4 months ago'
)
);
}
return $query_args;
}
add_filter( 'wpv_filter_query', 'tssupp_date_filter', 101, 3 );
Add this code to your Toolset custom code section at Toolset->Settings->Custom Code ensuring that its activated. Replace 123 with the ID of your view. |
|
2 | 9 | 4 years, 9 months ago | |
|
Creating horizontal ticker with a view
Started by: Franco Calcagni in: Toolset Professional Support |
|
2 | 9 | 4 years, 9 months ago | |
|
Horizontal post ticker with post date and title and dynamic expiring date
Started by: Franco Calcagni in: Toolset Professional Support |
|
2 | 6 | 4 years, 10 months ago |