Tagged: Gallery widget
Hello,
is it possible to use the Avia Gallery Widget as a custom field in a custom_post_type?
Thanks in common
Jörg
Hello Yigit,
I have a custom_post_type “custombike” that should contain only 4 simple text input fields (e.g. motor, frame, wheels….that is allready done and working fine) and a gallery. And I would love to use the gallery widget of enfold without reactivating the editor. I want to keep this very simple for my customer and friend. So I would like to use this short code widged as a custom field. I´m a bit concerned if his layout skills aren´t good enough, so I have to fix it every day. :P
A second solution could be I reactivate the editor and save a prelayoutet gallery column that appear if he add a new “Custombike”.
This assumes that the avia layout builder has to be activated default (at the moment I have to activate it first) and I could use a layout template.
Best regards
Jörg
Hey!
In theory, yes, you should be able to use the gallery shortcode with a custom field. Just make sure that the custom field output is embedded into a do_shortcode function ( http://codex.wordpress.org/Function_Reference/do_shortcode ) which executes the gallery shortcode. If you need a sample code for the gallery shortcode I recommend to use the default post/page editor and the “Magic wand” ( http://www.clipular.com/c/4952934513115136.png?k=ex4QRXahQjAyghy9l_RpxAw_t6g ) shortcode generator to generate the gallery shortcode.
Best regards,
Peter