Hi. I need to display dynamic content stored in custom fields from a specific post on another page of my site. (I’m using the Advanced Custom Fields plug-in.) In Enfold, I’m using a Code Block element along with shortcodes to keep things simple.
The custom field content contains fully qualified URLs. Ideally, I would like to display these links using a Button Row element, but I’m having problem when nesting shortcodes.
In the Code Block, using an ACF shortcode within plain HTML works fine:
<h3>Current Show Daily Forms</h3> <ul> <li><a href= '[acf field="release_form" post_id="530"]' target='_blank'>Show Release Form</a></li> </ul>
But, when I try to nest this shortcode within your Button Row shortcode, it breaks:
[av_buttonrow alignment='left' button_spacing='5' button_spacing_unit='px' av_uid='av-jo6idxj2' custom_class='chs-button-row' admin_preview_bg=''] [av_buttonrow_item label='Release Form' link='manually,[acf field="release_form" post_id="530"]' link_target='_blank' size='medium' label_display='' icon_select='yes' icon='4' font='entypo-fontello' custom_bg='' custom_font='#ffffff' av_uid='av-1fbifpm' icon_hover=''] [/av_buttonrow]
Anything I am missing, or is this just unsupported? Thank you in advance.
Nesting shortcodes is not possible by default, maybe this will help you out though? https://slewis.org/nested-wordpress-shortcodes/
You must be logged in to reply to this topic.