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:
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.
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.
- hidden link
templates&arrangeby=usage&usage=single
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).
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.
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 "hidden link." and strip lone trailing forward slashes from the domain in the target text, so links display cleanly as "domain.org" instead of "hidden 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: