Posted: May 21, 2016 at 8:58 am
|
Hi, I am using EE4 and I have aboutly the same problem as described here, but no solution was proposed… The shortcode calls works well when they are added in a wp page content but they don’t when they are called from php code. How to reproduce problem :
|
Hi Gabriel, You can do something like this instead, which will avoid the problems where the fallback short code processor kicks in:
|
|
|
Hi, |
Have a great weekend! |
|
|
Hi Josh ! |
Hi Gabriel, The code was meant to be instructional. If it didn’t work for you, it will help to be able to see how you used the code in context. Can you post the code in a github gist or pastebin.net paste bin, then link here so we can take a look? |
|
|
Hi Josh, Thank you |
Option 1 is don’t use do_shortcode() in a template. Option 2 is if you use do_shortcode() in the template, you put Option 3 is you can open a pull request to fix/remove where EE4 merges in any attributes passed via fallback short code processor. |
|
|
Hi Josh ! My apologies for the late answer, I had a lot of work these last days… So the solution is to execute the sortcode without any argument before the loop :
Best regards, have a nice day |
Hi Gabriel, Thanks for sharing your solution. Were there any other questions that we could help you with? — |
|
|
Hi, I confirm that the bug is solved since v 4.9.1p π Best regards |
Thanks for confirming Gabriel! I’ll update your support post to resolved. — |
|
The support post ‘Multiple calls to shortcode ESPRESSO_EVENT_ATTENDEES give same result’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.