Wordpress tags - select from pre-determined list? -


I have a WordPress installation in which registered users are allowed to post articles. The problem is in the tag section. I like the idea of ​​adding them tags, but it's going crazy often tags similar to 3 or 4 are spelled differently, sometimes people put funny stuff for the tag, etc. I want to be able to "add" the tags in the post, but do not tag the actual "creation" - I want the user to choose from the pre-defined list. This list can be a drop-down menu, some fancy jQuery thing, I really do not care. There may be something open for ideas / suggestions that how does StackOverflow do this? Thanks!

Are you able to use categories instead of tags? It is easy to do this through preload categories and limit users to a role that can not create categories.

If you really want to stay with the tag, then I think you have to find out if you add a tag, find out the fire hook.

If a suitable action hook is not available, you can.

I understand that the tags are added by _wp_ajax_add_hierarchical_term () in wp-admin / admin-ajax.php and that's where you see custom looks through the code in hooks, whether it is understood And test it.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -