WordPress.org

Ready to get started?Download WordPress

Forums

Display custom field(s) as a drop-down (5 posts)

  1. Jason Koning
    Member
    Posted 4 years ago #

    hi there,
    i'm using the following bit of code to display categories as a drop-down;

    <form action="<?php bloginfo('url'); ?>" method="get">
            <?php wp_dropdown_categories('show_count=1&hierarchical=1'); ?>
            <input type="submit" name="submit" value="view" />
    </form>

    i'd like to be able to do something similar for a custom field on posts.
    is this possible?
    thanks in advance...
    Jas

  2. seborgarsen
    Member
    Posted 4 years ago #

    any luck?

  3. jamoboggins
    Member
    Posted 4 years ago #

    I want to do exactly the same thing. Any help appreciated. It's probably some custom php code that's required I'd guess.

  4. Mark / t31os
    Moderator
    Posted 4 years ago #

    Meta keys and values are not public query vars, so they won't work in a search like the above..

  5. MichaelH
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags