Navigation überspringen

[Gelöst] Conditional block in template part displaying shortcode rather than field value

This support ticket is created vor 1 week, 2 days. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 6 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von shannonM-4 vor 5 days, 6 hours.

Assistiert von: Minesh.

Author
Artikel
#2864842

Hi there,

I'm trying to use a conditional block in a template part. When I do, the output displays the [types] shortcode rather than a custom field value. I've put together a screencast to illustrate the issue here:

versteckter Link

Thanks.

Saul

#2864958

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems you are using the classic editor to edit your pate or template.

Can you please try to use the block editor.

Can you please share problem URL and admin access details and once I review that I will guide you from where you can switch to block editor.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2865002

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I see you are editing the singe agency post template and I'm not sure wny you are editing the core theme files.

I see you have Agency post and normally you should build the single post content template for your Agency post type - Here is the link where you can see the single post content templates.
- versteckter Link
templates&arrangeby=usage&usage=single

Here is the Doc that shows how you can build single post content template:
- https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/
- https://toolset.com/course-lesson/using-toolset-conditional-block/
- https://toolset.com/course-lesson/styling-single-post-templates/

Have you checked the above and try to build single post content template rather disturbing the core theme files?

Please note that you will have to use the non-FSE(full site editing) theme like twentytwentyone.

#2865010

Minesh,

Thanks for your response.

You asked why I'm editing core theme files. I'm not. I'm extending a child theme—and the file I'm working in, agency-contact-info-sidebar.html, is a file that I created.

The parent theme is Ollie, a block-based theme, and I cannot switch to another theme such as twentytwentyon at this time. I'm trying to build the website using the WordPress template hierarchy and only use Toolset for custom fields, custom taxonomies, and views (not page or post templates).

Any other guidance you can offer?

Thanks.

Saul

#2865026

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

FSE theme is not supported yet but we do have release tomorrow or day after tomorrow that offers FSE theme file.

I suggest you wait a couple of days or maybe until tomorrow only and I will update you as soon as we publish the FSE theme support.

#2865037

OK, will do!

#2865422

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I've a news to share. We just released new version for Toolset plugins. Please check the following blog post:
- https://toolset.com/2026/06/toolset-1-7-complete-support-for-full-site-editing-with-blocks-and-views/

You can download the latest plugin version from the Downloads page:
- Toolset Type v3.6.2
=> https://toolset.com/download/toolset-types/#changelog

- Toolset Blocks v1.6.22
=> https://toolset.com/download/toolset-blocks/#changelog

- Toolset Forms v2.6.24
=> https://toolset.com/download/toolset-cred/#changelog

- Toolset Maps v2.2.2
=> https://toolset.com/download/toolset-maps/#changelog

- Toolset Access v2.9.5
=> https://toolset.com/download/toolset-access/#changelog

Can you please try to update all Toolset plugins and try to build single post content template using the FSE theme and check if that help you to resolve your issue.

#2865479

Thanks for the update.

I ended up creating my own dynamic custom block. I needed a way to format the display of various field types (for example, for URLs, I wanted to remove the "versteckter Link." and strip lone trailing forward slashes from the domain in the target text, so links display cleanly as "domain.org" instead of "versteckter Link").

As a feature request, it would be nice to have configuration toggles in the block editor for the following string manipulation for URL custom fields:

+ remove "versteckter Link" and "versteckter Link"
+ remove "www" subdomain
+ remove lone trailing forward slash