Home › Toolset Professional Support › [Waiting for user feedback] Issue with Shortcodes Instead of Text in Structured Data Output
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 8 replies, has 1 voice.
Last updated by Christopher Amirian 20 hours, 59 minutes ago.
Assisted by: Christopher Amirian.
Hello,
I am using Toolset to display FAQs on my website through repeatable fields. However, there is an issue where shortcodes appear in the structured data output instead of the actual question and answer text. This is evident in the source code (see attached screenshot 1).
Here’s a summary of the setup and issue:
1. The website is using the Rank Math SEO plugin.
2. I use a Toolset View block to display the FAQs with values from repeatable custom fileds.
3. Within the View, I use an Accordion block from Stackable to format the FAQ section.
4. When attempting to display FAQs through Toolset repeatable fields, the source code outputs Toolset shortcodes instead of the text values entered in the fields (see screenshot 1 for reference).
When I create FAQs directly through the Accordion block from Stackable, the source code generates the structured data correctly, as shown in screenshot 2.
Could you help me resolve the issue where Toolset repeatable fields output shortcodes instead of the expected text in the source code?
Thank you for your assistance.
Hi,
Welcome to Toolset support. I wonder if this is happening if you use any sort of third-party block inside the view block? Or it is specific to Stackable ones?
In general, this is the recommended way to show the Repeatable Field Groups:
Also if you check the top left hamburger menu to see the hierarchy of the blocks you should see that there are more than one block for view, it is the View Output and some others.
Make sure that you drag the stackable blocks to the most inner block there and see if it fixes the issue
If not, I'd appreciate it if you replicate the issue on this clean installation so we can investigate:
hidden link
Thanks.
Hello,
Thank you for your response and guidance.
I’d like to provide further clarification and updates based on your suggestions.
Each third-party block for FAQs behaves differently. For example, when I attempt to use the "FAQ by Rank Math" block inside the "view block," it doesn’t generate structured data in the source code at all. It seems unable to read data from the repeatable fields, as if it doesn’t recognize the content.
I’ve set up the repeatable fields exactly as per the recommended procedure from your documentation. I also ensure that the block used to display the repeatable fields is always placed as the most inner block within the "view block."
I have replicated the issue on the test site you provided. You can find it under the post titled "FAQ post." There, the same behavior occurs, where the shortcodes are displayed instead of the expected text values.
Thank you for your continued support.
Hi,
Thank you, I checked and the test website works correctly and the dynamic data is retrieved with no issues even if you used the Accordion block.
I created a video to show and asked a few questions:
hidden link
Thanks.
Hello,
Thank you for the video. Yes, the accordion works correctly. However, the issue lies in the source code, where the structured data is not composed correctly (see Screenshot 3 — a preview of the source code from Google Chrome). The FAQ question and answer values are displayed as shortcodes, and only one item is defined instead of three. When I validate the page using hidden link, the error becomes evident (see Screenshot 4).
Resolving this issue is crucial for SEO purposes.
Thank you for your assistance.
Hi,
Thank you for the details. As the normal functionality of the dynamic data is not the issue and the problem with structured data is happening with a third part plugin Stackable the priority will be low.
I surely will report this, but I suggest that you find an alternative solution for the accordion menu.
I will get back to this ticket if I have news about the development team's decision regarding this specific compatibility issue with Stackable.
Thanks.
Hello Christopher,
Thank you for the update. I understand, and I appreciate your time and assistance on this issue.
That said, could you please recommend any functional and compatible solution for displaying FAQs using Toolset repeatable fields that ensures the structured data is set up correctly?
Thank you once again for your support.
Michal.
Hi Michal,
There is nothing that I can suggest here as we do not have a tested method.
We recommend that you sue the default Toolset blocks.
Not sure if there are structured data considerations there.
Thanks.
Hi, Just FYI if you do not want the structured data to show on the Stackable accordion FAQ option you can use the option annotated in the attached screenshot.
Thanks.