Title: Shortcoder Menu Shortcoder Bug
Last modified: July 17, 2020

---

# Shortcoder Menu Shortcoder Bug

 *  Resolved [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/)
 * I have been blocking this plugin for updates for a very long time, but since 
   decided to test the update in my staging site to see if the shortcoder updates
   have fixed the issues that I have been seeing. Here is the issue.
    * v4.6 works
   perfectly for my Bible page, but when updating to v5 and higher (v5.3.1), the
   menu no longer brings up the results. I used to not know why this is the case
   until today. And here is what I am seeing, that needs fixed with your plugin.
   If I shorten the length of my shortcode, then it works, but at the current length,
   it does not work. This shortcode does not work, [sc name=”old-testament-messages-
   chapters-menu”] ([https://1drv.ms/t/s!AtzxGqXDzsbBifgCvvkE7v1x-H1E2A?e=FzaEN4](https://1drv.ms/t/s!AtzxGqXDzsbBifgCvvkE7v1x-H1E2A?e=FzaEN4)),
   which is the entire Old Testament Chapters Menu structure, but limiting it to
   just the first 10 chapters of Genesis and Exodus with this shortcode, it works,[
   sc name=”old_testament_messages_chapters_menu_modified”] ([https://1drv.ms/t/s!AtzxGqXDzsbBifgDIDaZ4aAkEY5K3g?e=qgvZVc](https://1drv.ms/t/s!AtzxGqXDzsbBifgDIDaZ4aAkEY5K3g?e=qgvZVc)).
   And here is the bible.js file ([https://1drv.ms/u/s!AtzxGqXDzsbBifgEno0lyCLWU21u3g?e=9lx067](https://1drv.ms/u/s!AtzxGqXDzsbBifgEno0lyCLWU21u3g?e=9lx067))
   that points to this page that makes the menus function the way they should.
 * The link I sent you is to my Bible page that is using the v4.6 plugin, and everything
   works. However, I’ve given you all that you need, in order to reproduce the issue
   on your end and then hopefully come out with a fix. I do not want to break my
   Bible page by updating to v5.3.1 until this issue is resolved. Thanks.
    -Paul
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcoder-menu-shortcoder-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13139440)
 * Hi [@dailycdev](https://wordpress.org/support/users/dailycdev/),
 * Thanks for your time in gathering the details.
 * Shortcoder does not have any limits in the code size. I’ve tested the plugin 
   with even bigger code and they work.
 * After upgrading to v5+ did you try pasting the full code into the the “visual
   editor” manually and save it ?
 * Since the code is huge, there could be problem with automatic migration.
 * In your staging site, you can try the following:
 * 1) While in V4, copy the huge shortcode content which is not working as a backup.
 * 2) Upgrade to V5
 * 3) Paste the shortcode content manually in the visual editor and save the shortcode.
 * 4) See if the entire content is saved as expected in v5. If yes, then whatever
   you’ve saved will be there in the output. Shortcoder does not manipulate with
   the code.
 * Thanks,
    Aakash
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140340)
 * I found the issue…
 * Your plugin is converting the following code upon upgrading to v5 and higher…
   
   <select class=”chosen” onchange=”location = this.value;”>
 * To:
 * <select class=”chosen”>
 * And…
 * <option selected=”true” disabled=”disabled”>Select Chapter</option>
 * To:
 * <option selected=”true”>Select Chapter</option>
 * See below…
    ——————- Original Code in Shortcode, using v4.6 ——————- <style> .myDi1v{
   display:none; } </style> [noindex] <div class=”bbooks”> <select id=”myselectio1n”
   class=”chosen”> <option selected=”true” disabled=”disabled”>Select Book</option
   > <option value=”1″/>Genesis</option> <option value=”2″/>Exodus</option> </select
   > </div> <div id=”sho1w1″ class=”myDi1v”> <select class=”chosen” onchange=”location
   = this.value;”> <option selected=”true” disabled=”disabled”>Select Chapter</option
   > <option value=”/bible/genesis/genesis-1/”>1</option> <option value=”/bible/
   genesis/genesis-2/”>2</option> <option value=”/bible/genesis/genesis-3/”>3</option
   > <option value=”/bible/genesis/genesis-4/”>4</option> <option value=”/bible/
   genesis/genesis-5/”>5</option> <option value=”/bible/genesis/genesis-6/”>6</option
   > <option value=”/bible/genesis/genesis-7/”>7</option> <option value=”/bible/
   genesis/genesis-8/”>8</option> <option value=”/bible/genesis/genesis-9/”>9</option
   > <option value=”/bible/genesis/genesis-10/”>10</option> </select> </div> <div
   id=”sho1w2″ class=”myDi1v”> <select class=”chosen” onchange=”location = this.
   value;”> <option selected=”true” disabled=”disabled”>Select Chapter</option> 
   <option value=”/bible/exodus/exodus-1/”>1</option> <option value=”/bible/exodus/
   exodus-2/”>2</option> <option value=”/bible/exodus/exodus-3/”>3</option> <option
   value=”/bible/exodus/exodus-4/”>4</option> <option value=”/bible/exodus/exodus-
   5/”>5</option> <option value=”/bible/exodus/exodus-6/”>6</option> <option value
   =”/bible/exodus/exodus-7/”>7</option> <option value=”/bible/exodus/exodus-8/”
   >8</option> <option value=”/bible/exodus/exodus-9/”>9</option> <option value=”/
   bible/exodus/exodus-10/”>10</option> </select> </div> ——————- Modified by your
   plugin upon conversion to from v4.6 to v5.3.1 ——————- <style> .myDi1v{ display:
   none; } </style> [noindex] <div class=”bbooks”> <select id=”myselectio1n” class
   =”chosen”> <option selected=”true”>Select Book</option> <option value=”1″ />Genesis
   </option> <option value=”2″ />Exodus</option> </select> </div> <div id=”sho1w1″
   class=”myDi1v”> <select class=”chosen”> <option selected=”true”>Select Chapter
   </option> <option value=”/bible/genesis/genesis-1/”>1</option> <option value=”/
   bible/genesis/genesis-2/”>2</option> <option value=”/bible/genesis/genesis-3/”
   >3</option> <option value=”/bible/genesis/genesis-4/”>4</option> <option value
   =”/bible/genesis/genesis-5/”>5</option> <option value=”/bible/genesis/genesis-
   6/”>6</option> <option value=”/bible/genesis/genesis-7/”>7</option> <option value
   =”/bible/genesis/genesis-8/”>8</option> <option value=”/bible/genesis/genesis-
   9/”>9</option> <option value=”/bible/genesis/genesis-10/”>10</option> </select
   > </div> <div id=”sho1w2″ class=”myDi1v”> <select class=”chosen”> <option selected
   =”true”>Select Chapter</option> <option value=”/bible/exodus/exodus-1/”>1</option
   > <option value=”/bible/exodus/exodus-2/”>2</option> <option value=”/bible/exodus/
   exodus-3/”>3</option> <option value=”/bible/exodus/exodus-4/”>4</option> <option
   value=”/bible/exodus/exodus-5/”>5</option> <option value=”/bible/exodus/exodus-
   6/”>6</option> <option value=”/bible/exodus/exodus-7/”>7</option> <option value
   =”/bible/exodus/exodus-8/”>8</option> <option value=”/bible/exodus/exodus-9/”
   >9</option> <option value=”/bible/exodus/exodus-10/”>10</option> </select> </
   div>
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140392)
 * Strange why `disabled=”disabled”` is missing.
 * There is no such code in Shortcoder to do the same.
 * Glad that you found the issue.
 * You can replace the shortcode content in v5 with the original and things should
   be fine.
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140404)
 * Based on what I just posted, why is your plugin stripping code from my shortcodes?
   Because of this, I feel like I cannot trust upgrading to the latest version since
   many other pages with code in their shortcodes would also be manipulated and 
   possibly not work. So please consider fixing this. Stripping code off like wordpress.
   com used to do to me until I moved to wordpress.org was terrible.
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140406)
 * Your plugin is converting the following code upon upgrading to v5 and higher…
   
   <select class=”chosen” onchange=”location = this.value;”> To: <select class=”
   chosen”>
 * And this brakes all the menus on my site.
    Please update your plugin to not remove
   code in the shortcodes. Thanks. -Paul
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140421)
 * Your plugin is also converting the following…
    <option selected=”true” disabled
   =”disabled”>Select Chapter</option> To: <option selected=”true”>Select Chapter
   </option>
 * Hopefully, an update will come out that will fix the stripping of code off, when
   going from v4.6 to v5 and higher.
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13140544)
 * I went ahead and backed up every shortcode, then upgraded the plugin to the current
   version and went into code editor and fixed every shortcode, since most of them
   had pieces of code stripped out like <script> and more. In saying this, I hope
   this issue gets fixed for the future.
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13141092)
 * [@dailycdev](https://wordpress.org/support/users/dailycdev/),
 * Shortcoder does not remove them.
 * Also there is no need for Shortcoder to specifically remove them either.
 * It should be because of someother plugin stripping off the attributes and keep
   the remaining for some security/safety checks.
 * If I could get the list of plugins active I could guess what could be causing
   this.
 * Thanks,
    Aakash
 *  Thread Starter [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * (@dailycdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13142627)
 * I appreciate you giving me the idea to do the following…
    “You can replace the
   shortcode content in v5 with the original and things should be fine.”
 * That was what fixed my issue.
    And a couple new ideas I found for a new version
   is the following… * Add a Date Modified Column, so we can see the shortcodes 
   that have recently been modified. * Add an automated tag for shortcodes with 
   errors in them. You can name the tag “Error” and auto tag shortcodes with it.
   This would be helpful to know what shortcodes I need fixed.
 * Anyhow, thanks again for making a very good plugin that is essential for wordpress.
   -
   Paul

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

The topic ‘Shortcoder Menu Shortcoder Bug’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

## Tags

 * [menu bug](https://wordpress.org/support/topic-tag/menu-bug/)

 * 9 replies
 * 2 participants
 * Last reply from: [dailycdev](https://wordpress.org/support/users/dailycdev/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/shortcoder-menu-shortcoder-bug/#post-13142627)
 * Status: resolved