@julia Thanks for testing this out! That works, but not in the way I need it. Unfortunately I don’t understand the method you used, so I’m having a hard time getting it to output what I need.
What I’m ultimately doing is outputting those shortcodes inside of a slider (each shortcode is a slide). I’m using slick slider, so in my case, each shortcode needs to be wrapped in a <div>
.
So this is my actual code:
<div class="slick-track">
<Loop type=fl-builder-template taxonomy=fl-builder-template-category terms=home-hero-slider orderby=menu_order order=asc>
<Set saved_id><Get saved_id />,<Field id /></Set>
</Loop>
<Shortcode fl_builder_insert_layout id="{Get saved_id}" type=fl-builder-template />
</div>
Which is outputting a list of all the shortcodes one after another. But each shortcode needs to be wrapped its own <div>
… Thoughts?
The output needs to look like this:
<div class="slick-track">
<div>[fl_builder_insert_layout id=1]</div>
<div>[fl_builder_insert_layout id=2]</div>
<div>[fl_builder_insert_layout id=3]</div>
</div>
Hence the original code I was trying:
<Loop type=fl-builder-template taxonomy=fl-builder-template-category terms=home-hero-slider orderby=menu_order order=asc>
<div><Shortcode fl_builder_insert_layout id="{Field id}"/></div>
</Loop>