Create a dropdown menu based on meta field?

Home Forums WPAlchemy Create a dropdown menu based on meta field?

This topic contains 0 replies, has 1 voice, and was last updated by  cosmocanuck 11 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2639

    cosmocanuck
    Participant

    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!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.