Tagged: custom dropdown menu
Hi! On my WP page, how would I create a dropdown menu listing the values of one of my metabox fields, and when selected, taking the user to a summary (excerpts) of all posts that match that value?
For example, each post in my site discusses a different location, and will have a metafield of a corresponding state or province. I’d like a dropdown menu on a page in my site from which one could pick, say, Arizona, and then be taken to all posts with Arizona as their location.
Though I’m sure there’s elegant and less elegant code approaches, I’d be OK with a hardcoded dropdown menu listing each possible state/prov, plus the code to produce a search based on that selection.
Anyway, thanks for any suggestions / insight!
You must be logged in to reply to this topic.