Tagged: avia layout builder, Shortcodes
-
AuthorPosts
-
September 6, 2016 at 12:31 pm #682562
I am trying to use a shortcode which outputs the URL of an image, as the input to the team member Avia shortcode. It seems to exit the team member shortcode when it comes across the inner shortcode’s close bracket
]
, and then the remainder of the shortcode is output as text.Please advise how I can stack the shortcodes.
September 7, 2016 at 7:32 am #683018Hey cullingfordconsulting,
I’m not sure if that would be possible but send us admin login details in private and we’ll have a look at it. You can post details in the private content section of your reply. Also please specify where you are trying this and with what code.
Best regards,
RikardSeptember 7, 2016 at 12:48 pm #683093See the information attached. The post shows the URL shortcode working.
September 9, 2016 at 6:23 pm #684303Hi,
You can enable debugging mode to see shortcodes you have created in pages using Advanced Layout Builder – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
Or, You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
then you can create any of them and copy/paste shortcode into any other content element or into text widget.If that is not what you meant, please elaborate, i am not sure if i understood the issue clearly.
Best regards,
YigitSeptember 10, 2016 at 2:59 am #684385I don’t think that answers my question. I want to be able to input content to a shortcode via another shortcode, example below.
[av_team_member name='John Doe' job='' src='[bp_profile_gravatar_url]' attachment='' attachment_size='' description='' font_color='' custom_title='' custom_content='' custom_class='']
Where the output results in this
September 12, 2016 at 2:03 pm #685099Hey!
No, that would not work. Please go to enfold/config-templatebuilder/avia-shortcodes/team.php file and find
$output.= "<img class='avia_image avia_image_team' src='".$src."' alt='".esc_attr($name)."' $markup />";
and change it to
$output.= "<img class='avia_image avia_image_team' src='".do_shortcode('[bp_profile_gravatar_url]')."' alt='".esc_attr($name)."' $markup />";
If you are using a child theme, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Regards,
YigitSeptember 12, 2016 at 3:34 pm #685198Rather than override the shortcode src input functionality are you able to offer any suggestions to replace the
[
and]
withdo_shortcode('[
and]')
so as to enable thedo_shortcode
functionality whenever$src
contains shortcode brackets.I inserted
$src = str_replace("[", "do_shortcode('[", $src); $src = str_replace("]", "]')", $src);
before
$output.= "<img class='avia_image avia_image_team' src='".$src."' alt='".esc_attr($name)."' $markup />";
However the result was the same as before.
September 18, 2016 at 7:40 am #688058Hi,
I’m sorry but this modification will require customization that is outside the scope of support. Please hire a freelance developer or contact codeable. http://kriesi.at/contact
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.