vimalS
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 |
---|---|---|---|---|---|
How to pass attribute to view’s PHP API
Iniciado por: vimalS
en: Toolset Professional Support
Problem: For example: $args = array( 'wpvprchildof'=> $atts['wpvprchildof'], 'ids'=> $atts['ids']); You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | hace 6 años, 9 meses | ||
How to add Two different header & footer on two pages without layout plugin
Iniciado por: vimalS
en: Toolset Professional Support
Problem: The issue here is that the user wanted to know if it was possible to create multiple headers using our Types and views plugins. Solution: Unfortunately this is not possible with our Types and Views plugin and will need to be done with some custom coding . You can follow the instructions in the link below as it should be able help you. |
2 | 7 | hace 6 años, 9 meses | ||
Get number of results for View filtered by shortcode attribute
Iniciado por: vimalS
en: Toolset Professional Support
Problem: I would like to use get_view_query_results to find the number of results for a View, filtered by a shortcode attribute. Solution: function get_students_count( $atts ) { $atts = shortcode_atts( [ 'wpvprchildof' => 0 ], $atts ); $args = array( 'wpvprchildof'=> $atts['wpvprchildof'] ); $filtered_posts = get_view_query_results(258, null, null, $args); return count($filtered_posts); } add_shortcode( 'wpv-students-count', 'get_students_count' ); Then use the shortcode like this: [wpv-students-count wpvprchildof='[wpv-post-id]'][/wpv-students-count] Relevant Documentation: |
2 | 6 | hace 6 años, 9 meses |