User Tags

Description

Adds a Taxonomies option under User to create custom user taxonomy.
All taxonomies are listed in Profile page for all users which allows users to add tags for the taxonomy.
Each Tag is associated with a template, listing all users who added that tag in their profile.

Supports Multisite
Note:
Only admin can manage Taxonomies.
Users can add new tags.

Filters Available

  • ‘ut_template_heading’ => Can be used to modify Template Page Heading
  • ‘ut_tepmplate_content’ => Can be used to modify users list style,
    args => 1 , $users => List of Users
  • ‘ut_template_content_empty’ => Display custom message, if there are no users for term
  • ‘ut_tag_cloud_heading’, Allow to modify Tag cloud heading

Shortcode

  • [user_tags], will generate the User Tags UI in frontend and save the tags

Credits

Justin Tadlock

Screenshots

  • Taxonomy Option under Users
  • Manage Tags for Custom User Taxonomy Food Like
  • Tags option in User profile Page
  • Template page for tag, listing all the associated users

Installation

  1. Upload the wp-user-taxonomies folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Taxonomies under Users option to create taxonomies for User

FAQ

What if tags template are not working for me?

You just need to save permalinks once, and it will work absolutely fine for you afterwards.

If you’d like to sort the Users list in template, Use the filter `ut_template_users`, here is a e.g.

add_filter( ‘ut_template_users’, ‘ut_sort_users’ );
/**
* Filters out the list of users in a template, and orders it by user_login
*
* @param $users
*
* @return mixed
*/
function ut_sort_users( $users ) {

    if ( empty( $users ) || ! is_array( $users ) ) {
        return $users;
    }
    $user_query = new WP_User_Query( array( 'fields' => 'ID', 'include' => $users, 'orderby' => 'user_login' ) );
    if ( ! is_wp_error( $user_query ) && ! empty( $user_list = $user_query->get_results() ) ) {
        return $user_list;
    }
 }
Visit https://github.com/UmeshSingla/user-tags for support

Reviews

Coding error

Hello Umesh,

I have installed the user tag plugin – 1.2.6

There is one issue in plugin.

When you change the name of any taxonomy and then try to go inside the taxonomy to add or remove tags, you can not enter.

I have debugged and found the solution in.

wp-content\plugins\user-tags\lib\class-ut-user-tags-list.php line 113

changed the line from
$taxonomy_slug = ut_taxonomy_name( $item[‘name’] );
to
$taxonomy_slug = ut_taxonomy_name( $item[‘slug’] );

Read all 11 reviews

Contributors & Developers

“User Tags” is open source software. The following people have contributed to this plugin.

Contributors

Translate “User Tags” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

1.2.6

  • New – Filter: ut_template_users in Taxonomy template to filter the list of users before displaying
  • Fixed – handle count callback for register taxonomy (Fixes tag cloud size issue )

1.2.5

  • Fixed – Remove PHP closures

1.2.4

  • Update – Taxonomy name is independent of prefix
  • Fixed – Bubbling up of multiple list on repeated click over most used tags link
  • Fixed – Tag being saved for admin too on editing other user profile

( Thank you @Tempera for reporting all the issues )

1.2.3

  • Fixed – ‘ut_template_content’ filter args
  • Fixed – Translation function (props @stefan)
  • Updated – Replaced PHP closure with normal functions

1.2.2

  • Fixed – Tag cloud not appearing for all taxonomies in shortcode
  • Update – Shortcode – Do not echo form if user is not loggedin

1.2.1

  • Fixed – Tag cloud for [user_tags] shortcode

1.2

  • Fixed – [user_tags] shortcode

1.1

  • Fix: All tag not being deleted

1.0

  • New: Tag Cloud to choose from most popular
  • New: Filter ‘ut_tag_cloud_heading’ to change tag cloud heading

0.1.3

  • Fixes Page not found error for tag templates
  • Fixes tags update for other users by administrator, causing overwrite to current logged in users taxonomy
  • Improved Template Styling

0.1.2

Fixes Taxonomy length error

0.1.1

Code formatting

0.1

First Release