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