christianS-11
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 |
---|---|---|---|---|---|
Remove text from radius filter
Started by: christianS-11 in: Toolset Professional Support |
2 | 3 | 2 years, 3 months ago | ||
Taxomoy Navigation – 2 Steps
Started by: christianS-11 in: Toolset Professional Support |
|
2 | 5 | 5 years, 1 month ago | |
Display Images from Checkbox Values
Started by: christianS-11
in: Toolset Professional Support
Problem: I would like to loop over the options for a checkboxes group field using Views, and display a different image per option. Solution: [wpv-conditional if="( '[types field='room-size' option='0'][/types]' eq 'filename1.jpg' )"] <img src="/wp-content/uploads/2019/04/filename1.jpg" /> [/wpv-conditional] [wpv-conditional if="( '[types field='room-size' option='1'][/types]' eq 'filename2.jpg' )"] <img src="/wp-content/uploads/2019/04/filename2.jpg" /> [/wpv-conditional] [wpv-conditional if="( '[types field='room-size' option='2'][/types]' eq 'filename3.jpg' )"] <img src="/wp-content/uploads/2019/04/filename2.jpg" /> [/wpvconditional] You will replace room-size with the field slug from wp-admin, and replace the img srcs with full URLs. The 'filename1.jpg' in quotation marks at the end of the line should be replaced with whatever you have in the value of each checkbox. Relevant Documentation: |
|
2 | 3 | 5 years, 11 months ago |