How to output a shortcode

I’m using a loop template to create a shortcode that includes a quote via a relationship field.

<Loop acf_relationship="{Get local=rel}">
  [bctt tweet="<Field quote />"]
</Loop>

When I inspect the page I get: " [bctt tweet="An apple a day"] "

What I need is: [bctt tweet="An apple a day"]

How could I strip those leading and trailing quotes?

Cheers, Richard

I haven’t been able to reproduce this issue with quotes, but maybe the following will work:

<Loop acf_relationship="{Get local=rel}">
  <Shortcode bctt tweet="{Field quote}" />
</Loop>
1 Like