In Wordpress CMS, In the "add new post" page , I just wanna let users select suggesting tags in the "tag selection box" and cannot add new tags. How can I do that?


Just copy paste the following code in your functions.php file which will add some css code in your WordPress back end which will hide the text box and add button of tags meta box to prevent user adding new tags.

add_action('admin_head', 'custom_css');

function custom_css() {
    echo '<style>
#tagsdiv-post_tag .howto,
#tagsdiv-post_tag .tagadd,
#tagsdiv-post_tag #new-tag-post_tag{
    display: none;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.