[Resuelto] Nested shortcodes not processing correctly
This support ticket is created hace 8 años, 1 mes. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I expected to see: The shortcode processed, but it is not
Instead, I got:
Im trying to pass the attachment image url to my function to to an ID lookup in order to generate a srcset attribute. I did have this working for some time, but it stopped working, I believe with the last update. Here is my code:
Now I've registered the custom shortcode, and this was working. I've also tried outputting the srcset attribute as well (ie not having it in the view markup, but in the shortcode output), but this is broken too.
Thankfully it's not breaking the page, but it sure is annoying as it had been working very well.
2)
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
3)
Could you please share problem URL?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Unfortunately, wp-admin access details are not working.
Before you resend it to me:
Could you please try to register your shortcode at:
=> Views -> Settings -> Compatibility -> Third-party shortcode arguments
Please refer to the following image:
=> hidden link
I've looked at the Shortcode API, and I'm confident that my code is ok and that Im running do_shorcode() recursively in –– everything seems correct on my end.
I've tried a few more tests, and found that third party shortcodes fail within wpv-if conditions. I greatly simplified my shortcode to simply return, a "I-Ran" / "I-did-not-run" message, and here are the results in my Views code:
I've escalated your ticket to our next level support. Please be patient, wait for a reply from them and they will get in touch with you as soon as possible.
I’m Adriano, Toolset support lead and I have been escalated to this thread. I’ll give my best to help you to achieve your needs through Toolset components.
I've done several tests and I couldn't reproduce that issue. Then I've figured out that Views isn't updated, please update to Views 1.12.1 and let me know if it solves your issue.
Thanks for looking at this. I can reproduce the issue in my local environment which has been updated. But I've now updated the staging sites as well, and the issue is the same.