Problem:
Some posts are not displaying correctly when using PHP 7.x, many of the shortcodes on the page are printed instead of parsed.
Solution:
PHP7 introduced limits that affect the regular expressions used to parse what's inside the conditional shortcode (i.e. between the opening and closing wpv-conditional shortcode).
It could be that for some posts with slightly more content (once all interior shortcodes have been expanded) it pushes you over the limit, whereas for other posts it does not. In which case the only solution is to break up the content to be conditionally displayed into smaller blocks, repeating the conditional shortcode if required.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 11 months ago.
Assisted by: Nigel.