[Resolved] shortcodes are not parsed when nested [wpv-conditional] are used
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
When both conditions are evaluated to `true` I'm expecting the `[types field="contact-first-name"][/types]` shortcode to be parsed and see it's value. But the shortcode is not parsed. Instead of its value I see the `[types field="contact-first-name"][/types]` text.
I thought that maybe I messed up quotes, so I played a little replacing single quotes with double quotes, etc. It didn't help.
Then I tried to unwrap the code from the outer `[wpv-conditional]`.
Surprisingly this code works fine. The types shortcode is parsed properly (I can see it's value). But it's not a solution because I need the outer conditional. So I made more tests and I found that when I get rid of the inner conditional HTML then the types shortcode is parsed properly!
Of course getting rid of the HTML is not a solution, but for some strange reason the HTML that's inside the inner `[wpv-conditional]` breaks the parser. This is very weird.
You can make my posts public. I will not post any credentials here. Please restore my previous comment. Don't make this post private, it might be useful for other users.
I understand the concern but allowing me to take a look at the site would allow me to help you debug and see what is causing the issue.
Can you recall when this issue started happening, maybe there was a new plugin installed? Also you can provide me with a duplicator package of the website so that I can debug the issue from my local host.
> I understand the concern but allowing me to take a look at the site would allow me to help you debug and see what is causing the issue.
Sorry, but I can't give you an access to the site. I also can't give you the full database dump. I can make an export of Types/Views/Cred if it works for you.
> Can you recall when this issue started happening
As I said in the first post it used to work before Views plugin update. I think it started to happen after the latest Views/Types update - I've updated both plugins at the same time. Now I use the most recent version of both plugins: Views 2.4.0, Types 2.1.12. I don't remember what was the exact version number of Views before update, but I'm sure it was 2.3.x.