WordPress.org

Ready to get started?Download WordPress

Forums

Almost there - Checkboxes for taxonomy in frontend form? (2 posts)

  1. Diana
    Expert e diva
    Posted 3 years ago #

    Hi there,

    This cool site has a tip that let us add a form in a page template, but I need to allow users to set another taxonomy through checkboxes (multiple).

    By default, we set a category (or taxo), so if you want to add another dropdown, we have to add another set_term instance i.e:
    wp_set_post_terms($pid,array($_POST['job_states']),’jobplace’,true);

    And then get terms and echo every item (can't remember the code right now, I will post here later ok.) The select field id must be then 'job_states'. And works magically! The taxo adds up to the post.

    Now I need help on this:
    How to use checboxes for another taxo I have? I use almost the same code for get terms and echo the itens, the renderized code is looking ok, but is not adding. I just don´t know how to use checkboxes on this.

  2. Diana
    Expert e diva
    Posted 3 years ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic