• Hi,

    I’m trying to create a kind of database of information for my music website. I’m installed the Custom Fields plugin by Coffe2Code.
    My basic idea was to add custom fields to each post such as Artist, Album, Genre, etc (I have a website about music) and show some drop down menus in the sidebar with this information. Upon clicking, I want to get the posts that have custom field data that matches. IE, when you click Radiohead, all posts that have Radiohead in the Artist custom field show.

    I have the basic drop down menu set up, but after this point, I’m not sure what to do. I know the on.change JS is effecting it, but even removing that, I don’t know what to do.
    This is the code in the sidebar:

    <select name="Artist" onChange='document.location.href=this.options[this.selectedIndex].value;'>
      <option value="Artist"><?php echo c2c_get_recent_custom('Artist'); ?></option>
     </select>
     <br><br><br>
    <select name="Album" onChange='document.location.href=this.options[this.selectedIndex].value;'>
      <option value="Album"><?php echo c2c_get_recent_custom('Album'); ?></option>
     </select>

    If someone can point me in the right direction, I’d appreciate it.

    Thanks.

    And heres the link to my site, if needed:
    https://www.lovethemusicreviews.com

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Drop Down Menu for Custom Fields’ is closed to new replies.