Skip Navigation

[Resolved] Problem with Types field shortcodes used as HTML tag attributes in Blocks 1.3. beta

This thread is resolved. Here is a description of the problem and solution.

Problem: HTML tags are broken when Types field shortcodes are used as tag attributes in the beta plugins.

Solution: This appears to be a regression in the beta plugins. Our developers have found the problem, and a permanent solution for this problem will be added in the final plugin releases.

This support ticket is created 3 years, 9 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 7 replies, has 2 voices.

Last updated by Christian Cox 3 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1720927

Hi i am just testing Blocks 1.3 beta at a site that i am updating at a testserver. Looks like some of the oldschool views ar not working anymore. I know it's just a beta but will further relase not beeing backwards compatible anymore?

e.g. hidden link Icons from related types

please delet follwoing information:

#1720991

The link of the image has a closing types tag at the end

... lp-layout-icons-white-04.png[/types]"

So that I just tried to delet the closing types tag "[/types]" in the template for the view

<img src="[types field='location-icon' output='raw' resize='proportional' item='@location-show.parent'][/types]" class="lp-mitglieder" alt="" height="40" width="40"

Looks like I don't need any closing types tag anymore 😉

#1721211

I know it's just a beta but will further relase not beeing backwards compatible anymore?
Hello, the upcoming release should definitely be backwards compatible. Existing Views should continue to work as expected in the new release. I suspect something else is going on - you may have found a bug or a conflict with another plugin/theme.

The link of the image has a closing types tag at the end
Okay, I see the same issue with shortcode execution in several places in the View's output, including in several CSS classnames like:

lp-shwo-programm-wrapper gala[/types]
lp-shwo-programm gala[/types]

This isn't normal. First, I'd like to rule out conflicts with the theme and other plugins. If it's okay, i would like to create a draft Page and insert the list-shows-freitag View in that page without using WPBakery. I'd like to disable all plugins except Types and Blocks, and activate a default theme like Twenty Twenty. Then I can test again. If the problem is solved, I can work backwards to reactivate the theme and other plugins iteratively until I find the conflict. Let me know if that's okay, or if you would prefer to do that yourself.

You mentioned a new testing server...I wonder if you are running into a known issue related to conditionals and PHP7's just-in-time regex parser pcre.jit:
https://toolset.com/errata/shortcodes-in-conditionally-displayed-content-may-not-be-executed-on-the-front-end/

There are a couple of workarounds for that, so if the tests without plugins and theme do not reveal the source of the problem, we can try those workarounds next.

#1721229

Actually, nevermind...I just tried a few things in the betas myself and I'm able to replicate this problem in my local environment. I think we've got a bug. Let me escalate this to the developers and get it on their radar quickly. Thanks for the report, I'll keep you posted here.

#1721239

I now that the theme I'am using makes probs, but wich theme does not 😛
If possible keep me up to date, thx!

#1721975

Sure, I've escalated the issue to our developers and they have acknowledged the problem in the Views/Blocks betas. It seems to be related to some improvements made for parsing shortcodes. When the Types field shortcodes are placed inside other shortcode attributes, the problem occurs. We will add a fix for that in the upcoming full releases. Thanks again for the report! I think we can close here since the issue is in a beta, and our developers have acknowledged the problem.

#1724941

My issue is resolved now. Thank you!

#1777597

Hello, just a quick note to let you know Types 3.4 and Blocks 1.3 / Views 3.3 releases are now live, and the fix for the broken nested shortcode issue has been resolved.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.