Problem: I would like to add a custom title attribute to the featured image displayed with the wpv-post-featured-image shortcode, but the title attribute isn't working.
Solution: The title attribute isn't supported on the wpv-post-featured-image shortcode, but you can create an image tag using custom HTML and apply the title and src attribute as needed.
<img src="[wpv-post-featured-image size='custom' height='150' width='150' output='url']" title="[types field='short-menu-title-2'][/types]" alt="[wpv-post-featured-image output='alt']" />
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153425
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 1 month ago.
Assisted by: Christian Cox.