CSS Web
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
ADA for Select field
Started by: CSS Web in: Toolset Professional Support |
|
2 | 4 | 8 months, 2 weeks ago | |
ACF URL filed for link
Started by: CSS Web
in: 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 | 1 year, 5 months ago | |
Captions for scaled images are failing.
Started by: CSS Web in: Toolset Professional Support |
|
2 | 8 | 3 years, 5 months ago | |
Date/Time … conditional display based on ???
Started by: CSS Web in: Toolset Professional Support |
|
2 | 2 | 3 years, 7 months ago | |
Captions – display
Started by: CSS Web
in: Toolset Professional Support
Problem: Solution: |
|
3 | 12 | 3 years, 9 months ago |