WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Showing Dropdowns on Front End Input Form

[Resolved] Showing Dropdowns on Front End Input Form

Viewing 2 replies - 1 through 2 (of 2 total)
  • reportica
    Member

    @reportica

    Agreed, if the name of the cpt-created taxonomy is “directory” what is the php for the view or the form? If you could, that would be great.

    Plugin Author Rachel Carden
    Participant

    @bamadesigner

    Hey guys…

    Well, learning how to build a form with PHP is something best saved for another forum since we’re just dealing with CPT-onomies here but if you need to know how to retrieve term info so you can use the info to build your form, you’ve come to the right place!

    get_terms() is a great function to use to retrieve your terms so you can use that list to build a form element.

    wp_dropdown_categories() will build a dropdown/select form element for you!

    I’m not really sure what your forms are for but, when you submit the form, you can use wp_set_object_terms() to assign the terms selected in your form.

    CPT-onomies documentation provides explanations and examples for all the functions you can use to interact with your terms.

    If you have any specific troubles with your CPT-onomy terms when you’re building the form, let me know and I’ll try to help.

    If you’re using a form plugin to build your form and you’re having issues, let me know what plugin you’re using and what exactly you’re trying to do and I’ll try my best to make sure it’s not an issue with CPT-onomies.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Showing Dropdowns on Front End Input Form’ is closed to new replies.