Drop down showing posts, but also need ‘View’ button
-
I read here https://www.ads-software.com/support/topic/228113 a way to show a drop down with all the posts ordered by post name. That is what I was looking for.
<select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=\"\"><?php echo attribute_escape(__('Select Post')); ?></option> <?php wp_get_archives('type=postbypost&format=option&show_post_count=0'); ?> </select>
But I also need to have the drop down not to got to the post URL onChange, but with a button that says ‘view’ on the side after a selection in the drop down has been made.
I tried many things, but cant seem to crack it. Would appreciate your help!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Drop down showing posts, but also need ‘View’ button’ is closed to new replies.