What I did was to render the VC shortcode directly in the custom shortcode. To use the shortcode you will need to do this.
[display_vc_gallery field='my-field' id="post-id"]
This support ticket is created 5 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.
Based on this post we placed the code in functions.php and created the next code slideshow code:
[vc_row][vc_column width="1/1"][vc_gallery el_id="gallery-152540" medias="[vc_gallery type="image_grid" images="[get_image_id url ="[types field='thumbnails' output='raw' ][/types]"]" img_size="300x222"]" gutter_size="1" screen_lg="1000" screen_md="600" screen_sm="480" images_size="one-one" single_overlay_opacity="50" single_padding="2"][/vc_column][/vc_row]
Unfortunately without luck.
Can somebody guide us to make this work? It would open a lot of doors in our website design...
I see that you are using the shortcode [types field='thumbnails' output='raw' ][/types] to get your image urls. Is this field a repeatable image field or just a single image field.
Secondly I see you are using this shortcode [get_image_id] is this a custom shortcode that was created to get the image id's based on their URL's?
I see that you are using the shortcode [types field='thumbnails' output='raw' ][/types] to get your image urls. Is this field a repeatable image field or just a single image field.
yes, its a repeatable field.
Secondly I see you are using this shortcode [get_image_id] is this a custom shortcode that was created to get the image id's based on their URL's?
As I described above, took the code from your suggestions there and adjusted it to the thing I need (our types image field is called: thumbnails)
I hope that the proper reference post url clears things out a bit more and you can help me out.
I've tried and inserted your custom code in toolset.
In this panel there's a warning.
The shortcode is breaking as well, I've used this:
[vc_gallery el_id="gallery-847486" medias="[get_repeatable_image_ids field='wpcf-thumbnails' id='[wpv-post-id]']" gutter_size="3" screen_lg="1000" screen_md="600" screen_sm="480" single_overlay_opacity="50" single_padding="2"]
here is a front-end page: hidden link
Am I missing something?
(if you want I can give you access to development and content template views - please let me know)
However it seems that this shortcode isn't accepting the custom shortcode as a parameter. Could you get in touch with the VC support to check if this can handle a shortcode to provide the data ?
I tired to get a answer by Uncode who delivered our theme.
They are not very helpful...
There is a section in vc composer where you can map shortcodes (see screenshot).
Would you mind take e look there and see what's possible?
It would be great to have this working...
Another thing is, when I place your shortcode without vc composer it's giving: '0,0,0,0,0,0,0'
Maybe there is something wrong there as well...
I just wrapped the shortcode in the custom shortcode I made so that it can start working with no issues. Since the VC shortcode doesn't accept shortcodes as parameter.
It works perfectly and duplicating and change the settings made it possible to create the options needed.
We now can have VC-sliders and VC-galleries in combination with wp-types / wp-views.
Thanks so much for your help... Really appreciated.
Kind regards,