User taxonomies
可以帮你做到这一点,我正在做类似的事情。您可以安装插件http://wordpress.org/plugins/user-taxonomies/, 并注册一个自定义分类法,虽然在我的情况下,插件有一些限制,可能会对您有所帮助。
register_taxonomy(\'profession\', \'user\', array(
\'public\' =>true,
\'labels\' =>array(
\'name\' =>\'Professions\',
\'singular_name\' =>\'Profession\',
\'menu_name\' =>\'Professions\',
\'search_items\' =>\'Search Professions\',
\'popular_items\' =>\'Popular Professions\',
\'all_items\' =>\'All Professions\',
\'edit_item\' =>\'Edit Profession\',
\'update_item\' =>\'Update Profession\',
\'add_new_item\' =>\'Add New Profession\',
\'new_item_name\' =>\'New Profession Name\',
\'separate_items_with_commas\'=>\'Separate professions with commas\',
\'add_or_remove_items\' =>\'Add or remove professions\',
\'choose_from_most_used\' =>\'Choose from the most popular professions\',
),
\'rewrite\' =>array(
\'with_front\' =>true,
\'slug\' =>\'author/profession\',
),
\'capabilities\' => array(
\'manage_terms\' =>\'edit_users\',
\'edit_terms\' =>\'edit_users\',
\'delete_terms\' =>\'edit_users\',
\'assign_terms\' =>\'read\',
),
));
Update
我编译了一个类似的插件
User Tags 这可能对你有帮助。