[Resolved] Choose slider or grid display with types
This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
SELECT TYPE IN CPT
What we try to do, is to create radio buttons where we can select if a post have grid or gallery view, based on the scripts you've made.
Now we have this shortcodes inside our Content template:
GRID: [get_repeatable_image_ids field='wpcf-thumbnails' id='[wpv-post-id]']
SLIDER: [get_repeatable_image_ids_slider field='wpcf-thumbnails' id='[wpv-post-id]']
DOTS NAV: [get_repeatable_image_ids_dotsnav field='wpcf-thumbnails' id='[wpv-post-id]']
We created a radio setup in types (see screenshot)
- We inserted the shortcodes in 'custom field content' -
After that we inserted the shortcode in our Content template but unfortunately nothing shows up 🙁
Can you think of a way how we can use types to setup the type of displaying the images (slider or grid)?
A sample page you will find here: hidden link