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?
The topic ‘Inline shortcodes in dropdown menu’ is closed to new replies.