CSS Web
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 |
|---|---|---|---|---|---|
|
ADA for Select field
Iniciado por: CSS Web en: Toolset Professional Support |
|
2 | 4 | 1 year, 7 months ago | |
|
ACF URL filed for link
Iniciado por: CSS Web
en: Toolset Professional Support
Problem: The user wants to use a URL value contained in an ACF URL field within a Toolset View to create a link with the post title. Solution: Create a custom shortcode to retrieve the URL value from the ACF field.
add_shortcode('get_url_by_field', 'get_url_by_field_fn');
function get_url_by_field_fn( $atts ) {
$data = shortcode_atts( array(
'field' => ''
), $atts );
if(!empty($atts['field']) && $atts['field'] === 'durl') {
$url = get_field('durl');
if($url) {
return esc_url($url); // Always escape and validate URLs
}
}
}
Usage within the Toolset View:
<p style="font-weight:bold; font-size: 1.3em; margin-bottom: 0;">
<a href="[get_url_by_field field='durl']">[wpv-post-title]</a>
</p>
This shortcode retrieves the URL value from the ACF field named 'durl' and generates a link with the post title. Make sure to replace 'durl' with the actual name of your ACF URL field. Relevant Documentation: Toolset Views: https://toolset.com/documentation/user-guides/views/ |
|
2 | 6 | 2 years, 4 months ago | |
|
Captions for scaled images are failing.
Iniciado por: CSS Web en: Toolset Professional Support |
|
2 | 8 | 4 years, 4 months ago | |
|
Date/Time … conditional display based on ???
Iniciado por: CSS Web en: Toolset Professional Support |
|
2 | 2 | 4 years, 6 months ago | |
|
Captions – display
Iniciado por: CSS Web
en: Toolset Professional Support
Problem: Solution: |
|
3 | 12 | 4 years, 8 months ago |