Title: Tag listbox&#8230;
Last modified: August 19, 2016

---

# Tag listbox…

 *  Resolved [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/)
 * Hi, this plugin is great, but i wonder if there is a way to add separated tags
   to the “Tag listbox”(in the admin), and when i click it (in frontend), that tag
   is added to the tag input textfield???

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053429)
 * [@diogo15](https://wordpress.org/support/users/diogo15/),
 * I’m not sure if I understand your question. The way I designed it is that the
   listbox in the frontend shows all the known tags. By clicking one of them it 
   is added to the tag input-field. It is also possible to edit the tag input-field
   by hand and define new tags there (together with existing tags).
 * The way I understand your question is that you only want certain tags to appear
   in the listbox. In theory that’s possible but, because the tag input-field allows
   the creation of tags, tags can be created and attached to the post but they cannot
   be used for future posts (unless you include them in the admin section).
 * Im I totally wrong in my explanation of your question? Please let me know.
 * inapan
 *  Thread Starter [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053496)
 * This is faster than i thought!… thank you, i guess that part is not working, 
   i created several tags, but they are not showing in the dropdown “Tag listbox”,…
 * Sorry if my english is too bad,..
 *  Thread Starter [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053504)
 * Really thank you, i solved it(jajaja), it doesn’t show the tags because the tags
   MUST be attached already to a post.
 * And if i would like manual tags??? i try this: (but it doesn’t work)
 *     ```
       <?php
       echo "<option value='MY_STATIC_TAG'>MY_STATIC_TAG</option>\n";
       echo "<option>".$post_tag_list_default."</option>\n";
       foreach (get_tags() as $tag){
       echo "<option value=\"";echo $tag->term_id;echo "\">" . $tag->name . "</option>\n";
       } ?>
       ```
   
 * _[Please post code snippets between backticks or use the code button.]_
 * in line 1778,…
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053509)
 * [@diogo15](https://wordpress.org/support/users/diogo15/),
 * You’re in the right corner of the code. In the unmodified code change
 * `foreach (get_tags() as $tag)`
 * to
 * `foreach (get_tags('hide_empty=0') as $tag)`
 * and tags which are unattached will show in the list.
 * I will change it in the next version. Thanks for pointing it out.
 * inapan
 *  Thread Starter [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053512)
 * Thank you,… but how can i add a manual tag???
    like above…
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053514)
 * [@diogo15](https://wordpress.org/support/users/diogo15/),
 * What do you mean by ‘a manual tag’? You can create a new tag from the frontend
   with the widget just by typing it in the tags input-field. The content of this
   field can include existing tags and new tags, comma separated. The droplist is
   meant to choose quickly from existing tags.
 * Another way of creating a tag is from the Dashboard of course.
 * To test, choose two existing tags from the list, put a comma behind the content
   of the tags input-field and type a tag which doesn’t exist.
    The result after
   posting will be a post with two existing tags and the newly created tag.
 * Does this answer your question?
 * inapan
 *  Thread Starter [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053522)
 * You were right, my question are not so clever, mmmmm… i think i don’t want that
   the people can see all tags in the site, i just want anyone can choose just the
   tags i allow to them, like the categories,…so if i set them manually:
 * `echo "<option value='MY_STATIC_TAG'>MY_STATIC_TAG</option>\n";`
 * this doesn’t work…
 * Really Thanks for your time.
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053532)
 * [@diogo15](https://wordpress.org/support/users/diogo15/),
 * OK, you’re welcome.
    If you go to [this page](http://codex.wordpress.org/Function_Reference/get_tags)
   you see that get_tags has exclude and include options. These options let you 
   control which tags will be returned by get_tags. So, it is possible to ex- or
   include certain tags.
 * The problem however is that the tags input-field allows the creation of new tags.
   You could prevent that by changing the line which begins with
 * `<input type="text" name="quick_post_tags" id="quick_post_tags"`
 * to
 * `<input readonly type="text" name="quick_post_tags" id="quick_post_tags"`
 * Instead of readonly you could also use `disabled`.
 * It is a bit clumsy this way because there is no way to correct the input. I think
   the only way to enable that would be a tags checklist as well as a tags input-
   field (like the custom taxonomies).
 * inapan
 *  Thread Starter [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [15 years ago](https://wordpress.org/support/topic/tag-listbox/#post-2053544)
 * Really really really thank you….
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/tag-listbox/#post-2053745)
 * [@diogo15](https://wordpress.org/support/users/diogo15/)
 * You’re welcome.
 * inapan

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Tag listbox…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-post-widget.svg)
 * [Quick Post Widget](https://wordpress.org/plugins/quick-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-post-widget/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [inapan](https://wordpress.org/support/users/inapan/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/tag-listbox/#post-2053745)
 * Status: resolved