Skip Navigation

[Resolved] Shortcodes not working in Fields and Text Block

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1406119

I am trying to: Trying to use the Fields and Text block

Link to a page where the issue can be seen: hidden link, look under description and transcript tabs.

I expected to see: I expect to see the body and transcript

Instead, I got: the shortcodes

Note this was working, first [types field='transcript'][/types] stopped working and while editing to see if I could figure it out [wpv-post-body view_template="None"] stopped working.

The following is the contents of a fields and text block (html mode) in a reusable block which is used by 3 content type templates.
<ul class="nav nav-pills mb-3" role="tablist">
[wpv-conditional if="( NOT(has_post_type('heart-beats')) )"]
<li class="nav-item">Description
[/wpv-conditional]
[wpv-conditional if="( NOT(empty($(wpcf-transcript))) )"]
<li class="nav-item">Transcript
[/wpv-conditional]
[wpv-view name="things-to-do-tab"]
[wpv-view name="references-tab"]
[wpv-view name="credits-tab"]

<div id="pills-tabContent" class="tab-content">
[wpv-conditional if="( NOT(has_post_type('heart-beats')) )"]
<div id="pills-description" class="tab-pane fade show active" role="tabpanel" aria-labelledby="pills-description-tab">[wpv-post-body view_template="None"]</div>
[/wpv-conditional]
[wpv-conditional if="( NOT(empty($(wpcf-transcript))) )"]
<div id="pills-transcript" class="tab-pane fade" role="tabpanel" aria-labelledby="pills-transcript-tab">[types field='transcript'][/types]</div>
[/wpv-conditional]
[wpv-view name="things-to-do-content"]
[wpv-view name="references-content"]
[wpv-view name="credits-content"]
</div>

#1406473

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Steve

I'm not seeing any issues displaying fields via shortcodes inside conditional statements inside a Fields and Text block in HTML mode on my own test site.

Could I take a look at your site and I may be able to spot what's going on.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

This is a template for single podcast posts?