As Visual Composer is part of the Berger Theme, I hope someone will be able to help with this small problem.
As you can see in the attachment, we have added a shortcode to place two images in a specific layout, and it works perfect. But we would really, really like to be able to see the two selected images in the editor.
I\'l look further into vc_map.. We use it already (as you can see in the post), I just don\'t get how to show custom information via it.. But guess I have to read some more about vc_map and how it works, and how the information is handled to show custom information in the editor.
I now got the ID\'s of the images showing (see attached image), but I want to show the images not just the ID\'s, we are still talking about showing it in the backend. I still don\'t get how to do this? I have dissected vc_single_image to see how they do it, but can\'t see what converts the id\'s to the image. and can\'t follow the import of all the different files, and dependent parts, so at a loss. :/
Hi Support,
As Visual Composer is part of the Berger Theme, I hope someone will be able to help with this small problem.
As you can see in the attachment, we have added a shortcode to place two images in a specific layout, and it works perfect. But we would really, really like to be able to see the two selected images in the editor.
Only thing we have added is plugin with:
add_action( 'vc_before_init', 'vc_map_setup_two_column_image_and_image' );
function vc_map_setup_two_column_image_and_image()
{
vc_map( array(
"name" => __("Two Column Image And Image (1280x)"),
"base" => "two_column_image_and_image",
"category" => ....... and so on
}
add_shortcode('two_column_image_and_image', function ($atts, $content)
{
Create stuff..
return stuff;
}
So what do I need to add to see the selected images in the vc editor?
Any help would be appreciated,
- Henning M
Hello,
not really sure. Have you tried the shortcodes mapper?
https://vc.wpbakery.com/video-academy/add-shortcodes-visual-composer-wordpress/
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
Anyone else perhaps knowing how to? Leaving this ticket public.
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
We used vc_map to map Berger shortcodes
https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524332
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
Thanks for the feedback..
I\'l look further into vc_map.. We use it already (as you can see in the post), I just don\'t get how to show custom information via it.. But guess I have to read some more about vc_map and how it works, and how the information is handled to show custom information in the editor.
Thanks.
- H
Hope you guys are still there :)
I now got the ID\'s of the images showing (see attached image), but I want to show the images not just the ID\'s, we are still talking about showing it in the backend.
I still don\'t get how to do this? I have dissected vc_single_image to see how they do it, but can\'t see what converts the id\'s to the image. and can\'t follow the import of all the different files, and dependent parts, so at a loss. :/
Any pointers would be appreciated.
Thanks,
- H
This is something I\'m afraid you can\'t do it with vc_map
I mean I was not able to find how other then hooking into plugin itself.
https://wpbakery.atlassian.net/wiki/display/VC/Inner+API
This is a good question and if you find a solution plz share it.
thanks
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio