Franco Calcagni
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
| Status | Debate | Supporter | Voces | Mensajes | Caducidad |
|---|---|---|---|---|---|
|
View related post data in a custom post
Iniciado por: Franco Calcagni en: Toolset Professional Support |
1 | 2 | 4 years, 1 month ago | ||
|
Add a block with OpenStreet Map
Iniciado por: Franco Calcagni en: Toolset Professional Support |
|
2 | 5 | 4 years, 1 month ago | |
|
Creating a content template using blocks for old post types
Iniciado por: Franco Calcagni en: Toolset Professional Support |
|
2 | 7 | 4 years, 1 month ago | |
|
Receive and send data from external webservices
Iniciado por: Franco Calcagni en: Toolset Professional Support |
2 | 2 | 4 years, 6 months ago | ||
|
Filtering a view with post only from last 4 months
Iniciado por: Franco Calcagni
en: 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
Iniciado por: Franco Calcagni en: Toolset Professional Support |
|
2 | 9 | 4 years, 10 months ago | |
|
Horizontal post ticker with post date and title and dynamic expiring date
Iniciado por: Franco Calcagni en: Toolset Professional Support |
|
2 | 6 | 4 years, 10 months ago |