Franco Calcagni
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
| Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
|---|---|---|---|---|---|
|
View related post data in a custom post
Gestartet von: Franco Calcagni in: Toolset Professional Support |
1 | 2 | vor 4 years, 1 month | ||
|
Add a block with OpenStreet Map
Gestartet von: Franco Calcagni in: Toolset Professional Support |
|
2 | 5 | vor 4 years, 1 month | |
|
Creating a content template using blocks for old post types
Gestartet von: Franco Calcagni in: Toolset Professional Support |
|
2 | 7 | vor 4 years, 1 month | |
|
Receive and send data from external webservices
Gestartet von: Franco Calcagni in: Toolset Professional Support |
2 | 2 | vor 4 years, 6 months | ||
|
Filtering a view with post only from last 4 months
Gestartet von: 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 | vor 4 years, 9 months | |
|
Creating horizontal ticker with a view
Gestartet von: Franco Calcagni in: Toolset Professional Support |
|
2 | 9 | vor 4 years, 10 months | |
|
Horizontal post ticker with post date and title and dynamic expiring date
Gestartet von: Franco Calcagni in: Toolset Professional Support |
|
2 | 6 | vor 4 years, 10 months |