Skip Navigation

[Waiting for user feedback] Shortcode values and data not displaying

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.

This topic contains 1 reply, has 1 voice.

Last updated by Christopher Amirian 1 week, 2 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2830182

Tell us what you are trying to do?
I have created a custom post type called Social Media Accounts. There are two fields in the group: social media account and social media links. The first is a select field, and the second is a URL field.

What I plan to do is use the select field's key/value pairs to identify the link and place a Font Awesome icon when displayed.

<a class="sm-links" title="[types field='social-media-account'][/types]" href="[types field='social-media-links' output='raw'][/types]" target="_blank" rel="noopener"><i class="fa [types field='social-media-account' output='raw'][/types] fa-2xs"></i><span class="sr-only">[types field='social-media-account'][/types]</span></a>

What I am finding is that the output looks like this:

<a class="sm-links" title="" href="<em><u>hidden link</u></em>" target="_blank" rel="noopener"><i class="fa  fa-2xs"></i><span class="sr-only"></span></a>

The social-media-links display, but the social-media-links do not, whether using raw output or not.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
I had set up something similar on a site I built years ago. I have retrieved it to have an example:

hidden link

What is the link to your site?

hidden link

#2830273

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. As I do not know the details on how the select field is created in Toolset, I will give the steps below for you to test:

Create a temporary page and paste this:

[wpv-post-id] – [wpv-post-title]
[types field="your_field_slug" output="raw"][/types]

If this renders correctly, the issue is context (where the shortcode is placed).

If this doesn’t render, we’re dealing with a conflict or syntax problem.

If the issue is context:

Elementor: Use the Shortcode widget (not Heading/Text widgets, which may sanitize).

View loop vs. page context: Inside a View loop, “current post” = loop item. Outside the loop (e.g., on the page template), reference context explicitly:

Loop item: [wpv-post-title]

Page context: [wpv-post-title item="$current_page"]

Nested/empty output: For field shortcodes, prefer explicit output:

[types field="your_field_slug" output="raw"][/types]

(Use output="url" for images/links when needed.)

Curly quotes / HTML builders: Ensure straight quotes (") in attributes. Page builders sometimes convert quotes and break shortcodes.

Caching: Toolset → Settings → Front-end content → Clear cache. Also clear any page/performance cache and retry.

If the issue persists, I will need to know:

Where the shortcode is placed (View loop template, Content Template, Toolset Blocks page, Elementor template/widget, etc.).

The exact shortcode/markup that’s not rendering (copy/paste).

Also please test if the same thing happens on a minimal setup:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
. Toolset Types
. Toolset Blocks
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.