Franco Calcagni
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
View related post data in a custom post
Commencé par : Franco Calcagni in: Toolset Professional Support |
1 | 2 | Il y a 4 years, 1 month | ||
|
Add a block with OpenStreet Map
Commencé par : Franco Calcagni in: Toolset Professional Support |
|
2 | 5 | Il y a 4 years, 1 month | |
|
Creating a content template using blocks for old post types
Commencé par : Franco Calcagni in: Toolset Professional Support |
|
2 | 7 | Il y a 4 years, 1 month | |
|
Receive and send data from external webservices
Commencé par : Franco Calcagni in: Toolset Professional Support |
2 | 2 | Il y a 4 years, 6 months | ||
|
Filtering a view with post only from last 4 months
Commencé par : 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 | Il y a 4 years, 9 months | |
|
Creating horizontal ticker with a view
Commencé par : Franco Calcagni in: Toolset Professional Support |
|
2 | 9 | Il y a 4 years, 10 months | |
|
Horizontal post ticker with post date and title and dynamic expiring date
Commencé par : Franco Calcagni in: Toolset Professional Support |
|
2 | 6 | Il y a 4 years, 10 months |