WordPress.org

Ready to get started?Download WordPress

Forums

All term_taxonomy_id in a select box (2 posts)

  1. IchamArazi
    Member
    Posted 6 years ago #

    Hello. I'm looking for specialist's help.

    I would like to have something like this :

    <select>
    <option value="{term_taxonomy_id}">Category WP 1</option>
    <option value="{term_taxonomy_id}">Category WP 2</option>
    <option value="{term_taxonomy_id}">Category WP 3</option>
    <option value="{term_taxonomy_id}">...</option>
    </select>

    What is the MySQL Request in order to have all my categories in a select box ?

    Thank you and excuse my poor english (i'm a french guy) !

  2. moshu
    Member
    Posted 6 years ago #

    You would like to have that... WHERE?
    If on your site - read the documentation:
    Template_Tags/wp_dropdown_categories

Topic Closed

This topic has been closed to new replies.

About this Topic