Title: Inline shortcodes in dropdown menu
Last modified: August 30, 2016

---

# Inline shortcodes in dropdown menu

 *  Resolved [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * (@digbymaass)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/inline-shortcodes-in-dropdown-menu/)
 * I’m using the inline shortcode to show Tablepress results tables like so:
 *     ```
       [popup id="table"][table id=65 /][/popup]
       [popup_trigger id="table"]<a href="#">2015</a>[/popup_trigger]
       ```
   
 * We have existing drop down results which use onchange to trigger a value to be
   added to the URL in a window.location bit of script.. eg
    `<option value="/ri_results/
   tinto/t_2014.htm">2014</option>`
 * Putting the inline shortcode in the dropdown doesn’t work in any of the numerous
   ways I’ve tried to rewrite the drop down code (of this type – `<select name="
   select1" size="1" onchange="if (this.options[this.selectedIndex].value.length!
   =0) location=this.options[this.selectedIndex].value">`).
 * Obviously the window.location method won’t work, but I can’t find a way to trigger
   the popup link. My coding isn’t up to it.
 * Is there any way at all of having selectable years in a drop down menu that will
   trigger the pop-up using inline shortcode?
 * I would settle for having a ul of years on the page but the shortcode for each
   year displays in the visual editor. Since there is a lot of it, it will make 
   visual editing quite difficult in the long run. Is there a way of hiding the 
   shortcode in the visual editor?
 * [https://wordpress.org/plugins/popup-maker/](https://wordpress.org/plugins/popup-maker/)

The topic ‘Inline shortcodes in dropdown menu’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/inline-shortcodes-in-dropdown-menu/)
 * Status: resolved