Title: Problem with custom shortcode
Last modified: August 5, 2019

---

# Problem with custom shortcode

 *  Resolved [robbiejackson](https://wordpress.org/support/users/robbiejackson/)
 * (@robbiejackson)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/)
 * I encountered a problem recently with my site and now that I have deactivated
   your SEO plugin it has gone away.
 * I have a custom plugin which uses a custom shortcode to insert a map on web pages
   and I found that when SEO was activated my plugin handler code for the shortcode
   was getting called twice for each embedded shortcode, but this was happening 
   only on some pages.
 * I think that this is related to the latest SEO version 3.2.1, which was installed
   on 2 August, as I reckon it would have been noticed earlier if it were a problem
   associated with a previous version.
 * Also when I deactivated SEO it mucked up my main menu, and I had to rebuild it,
   which I wasn’t overly pleased about.
 * My version of wordpress is 5.2.2 and I’m running PHP7.2.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-custom-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11802650)
 * This is a known bug, and we’re currently working on 3.2.2 which should fix it.
   The bug is with our methodology in auto-generating the schema.org description
   from the page content when the content has shortcodes.
 * In the meantime, you should be able to “fix” it by either disabling the new schema.
   org functionality in the settings page (and then re-endable it once you’ve updated
   to 3.2.2)
 * or
 * manually enter a meta description for the affected page(s)
 *  Thread Starter [robbiejackson](https://wordpress.org/support/users/robbiejackson/)
 * (@robbiejackson)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11803598)
 * Ok, thanks for the confirmation Michael. I couldn’t understand why it was working
   on some pages but not on others, so your statement about the meta description
   explains that.
 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11805957)
 * [@robbiejackson](https://wordpress.org/support/users/robbiejackson/) We’ve just
   released All in One SEO Pack 3.2.2. Please make sure you’ve enabled the schema.
   org option on the AIOSEOP settings page and let us know if it fixes this issue.
 *  Thread Starter [robbiejackson](https://wordpress.org/support/users/robbiejackson/)
 * (@robbiejackson)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11857912)
 * I’ve installed version 3.2.4 (I didn’t get round to installing the earlier ones)
   and can confirm that this problem is now fixed.
 * Thanks Michael!
 * Robbie
 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11858273)
 * [@robbiejackson](https://wordpress.org/support/users/robbiejackson/)
    Thanks 
   for following up and confirming the fix. I’m glad it’s working for you. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with custom shortcode’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/problem-with-custom-shortcode/#post-11858273)
 * Status: resolved