• Resolved Geek Goddess

    (@geek-goddess)


    Hi, I have a plugin that runs an insert query to an outside database and does this as part of a plugin that uses a shortcode to run this specific function on a page. The insert was running SIX TIMES and I finally tracked it down to AIO parsing the page for the Meta Description. Once I set that explicitly to something (and didn’t use the default “Page Excerpt”) the shortcode only ran one time (and 1 insertion into our database). There is no longer an option to turn off shortcode parsing in AIO SEO (it was deprecated). Is there a way to do this globally without having to add every single shortcode to this snippet? https://aioseo.com/docs/aioseo_conflicting_shortcodes/ Obviously, just manually setting the Meta Description works, but I was looking for something I could do globally so it just doesn’t parse shortcodes. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @geek-goddess,

    We currently don’t have a setting for this, but we can definitely add a filter. I’ve gone ahead and wrote the code for it, so it should be included in the next update.

    Here’s a code snippet you can use when it releases –

    add_filter( 'aioseo_disable_shortcode_parsing', '__return_false' );

    – Arnaud

    Thread Starter Geek Goddess

    (@geek-goddess)

    Thank you for the super fast response! ??

    I’ll watch for the next update. Appreciate it!

    @geek-goddess . Hi. I had the same issue. I fixed this by adding a variable to my render shortcode method. It is set to true in my wp_head hook with a very high prio. So that all other plugins run before.

    Now it is not executed at all for AOSEO but only at the time I want it to.

    Best regards, Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode loading 6 times’ is closed to new replies.