Hello,
I have a layout for artists that inserts the artist name if it contains an apostrophe into a piece of code that retrieves tour dates. Since updating the Layouts plugin this stopped working. There is a field also for names without an apostrophe, the need for the other field for artists with apostrophes was because it would not work with the code. Example here:
lien caché
It is not loading the tour dates.
Here is the code:
<p>[wpv-conditional if="( $(wpcf-tour-dates) eq '1' )"][x_custom_headline type="left" level="h4" looks_like="h4" accent="true" class="my-accent"]Tour Dates[/x_custom_headline]<a class="bit-widget-initializer" data-artist-name="[wpv-post-title output="sanitize"]" data-display-local-dates="false" data-display-past-dates="false" data-auto-style="false" data-text-color="#000000" data-link-color="rgba(71, 194, 235, 0.95)" data-popup-background-color="#FFFFFF" data-font="raleway,Helvetica Neue,Helvetica,Arial,sans-serif" data-background-color="transparent" data-display-logo="false" data-display-limit="10" data-link-text-color="#FFFFFF"></a>[/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(wpcf-tour-name))) )"][x_custom_headline type="left" level="h4" looks_like="h4" accent="true" class="my-accent"]Tour Dates[/x_custom_headline]<a class="bit-widget-initializer" data-artist-name="[types field='tour-name'][/types]" data-display-local-dates="false" data-display-past-dates="false" data-auto-style="false" data-text-color="#000000" data-link-color="rgba(71, 194, 235, 0.95)" data-popup-background-color="#FFFFFF" data-font="raleway,Helvetica Neue,Helvetica,Arial,sans-serif" data-background-color="transparent" data-display-logo="false" data-display-limit="10" data-link-text-color="#FFFFFF"></a>[/wpv-conditional]</p>
Thanks