Title: Tag input as checkboxes
Last modified: August 22, 2016

---

# Tag input as checkboxes

 *  [BearMark](https://wordpress.org/support/users/bearmark/)
 * (@bearmark)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tag-input-as-checkboxes/)
 * Hey, im trying to implement pre-defined tags to choose from as checkboxes instead
   of typing in tags in the textinput field.
    But haven’t had any great success 
   yet. Im in the learning phase still, so what would be the easiest way of doing
   this?
 *     ```
       if($this->options['ttgps_chk_tagsfield'] == "on"){
       				        $template_str .= '<input type="text" class="txtinput" id="tags" name="tags" size="72"';
       					$template_str .= ($this->options['ttgps_chk_tagsfield_req']=="on") ? ' required="required" ' : '';
       					$template_str .= 'placeholder="Comma Separated Tags">';
       				    }
       ```
   
 * Tried editing this in several ways but couldnt get it to work as i wanted.
 * Great plugin by the way!
 * [https://wordpress.org/plugins/tt-guest-post-submit/](https://wordpress.org/plugins/tt-guest-post-submit/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rashed Latif](https://wordpress.org/support/users/rashedlatif/)
 * (@rashedlatif)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tag-input-as-checkboxes/#post-5379440)
 * Yes that the part of code you need to make change. you can remove it totally 
   and write the codes for check box. you can use array to hold all the predefined
   tags and runa loop to implement check boxes or just implement it one by one whatever
   is easier for you. there should be many references online regarding that.

Viewing 1 replies (of 1 total)

The topic ‘Tag input as checkboxes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tt-guest-post-submit_6284a6.svg)
 * [TT Guest Post Submit](https://wordpress.org/plugins/tt-guest-post-submit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tt-guest-post-submit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tt-guest-post-submit/)
 * [Active Topics](https://wordpress.org/support/plugin/tt-guest-post-submit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tt-guest-post-submit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tt-guest-post-submit/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [input](https://wordpress.org/support/topic-tag/input/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rashed Latif](https://wordpress.org/support/users/rashedlatif/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/tag-input-as-checkboxes/#post-5379440)
 * Status: not resolved