Shortcode called twice by theme

Hello all, have anyone experienced a shortcode being called twice by cornerstone? Here’s a video by the support team of ActiveMember360 explaining it. https://www.loom.com/share/00b7d32bc16f451e8daec0f288880128

Hi @nebworx,

Thanks for reaching out.
I would suggest you check by activating any default theme like TwentyTwenty and check if the issue persists or not. If it persists, please inform the Plugin Author of this.
If not, we will be curious to know why the issue only persists with our theme. To investigate, I would suggest you please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific URL where you are having this issue.

To create a secure note, click the key icon underneath any of your posts.

Please note that we do not guarantee a fix or compatibility for 3rd Party plugins.

Thanks

Hey @nebworx,

I’ve reviewed your website but I couldn’t find the correct page where you added the shortcode and when checking the documentation of the said plugin there are so many shortcodes. That being said, would you mind sharing more information?

Thank you.

Hello @marc_a,

Thanks for looking into this. The developer seems to be able to replicate this on a clean install. Message below is from him:

I’ve triple checked and even with just the ThemeCo Builder and the issue is clearly that ThemeCo is calling “the_content()” function of WordPress twice, which triggers all “the_content” hooks twice, therefore all shortcodes will be executed twice. This happens with and without ActiveMember360 regardless of it’s version.

I cannot tell why it is working on your site with 3.4.6, maybe any customizations to your 3.4.6 to remove the check against a second execution of the password change shortcode? Now your staging is updated to 4.3.0, so i cannot check if there are any customizations to the code which would explain it.

Basically, there are no changes between 3.4.6 and 4.3.0 in this regard. I probably found an indicator to Themeco’s wrong second call which could end up in a workaround for their bug.

I’ll keep you updated.

The page is called “Password Update” and the shortcode I used is [mbr_password_change button_text=‘Reset my password’]

Hey @nebworx,

I tried to activate the default theme to check if the shortcode is working but it isn’t. There may be some conflict with your setup. I highly recommend checking our troubleshooting procedures.

Hope that helps and let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.