Featured Users

0

While working on a custom WordPress theme we needed the ability to feature users and authors. So we created this ‘Featured users’ plugin which allows the administrator to easily sta

Version
Last updated
Active installations
WordPress Version
Tested up to
PHP Version
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

While working on a custom WordPress theme we needed the ability to feature users and authors. So we created this ‘Featured users’ plugin which allows the administrator to easily star (feature) users. Then using a custom query in the theme, shortcode or widget; featured users can be displayed by only retrieving users with the custom user meta jsfeatured_user. The plugin does not make any changes to your current theme it only does the following:

  • Adds a featured column in the Users panel of the WordPress Admin.
  • When a user is featured the plugin adds or updates the custom field ‘jsfeatured_user’ and sets the value to yes.
  • Provides custom widget that echoes out shortcode.
  • Provides custom shortcode that echoes ul list of featured users.
  • Includes theme functions and filters for developers.

Feel free to use and include in your WordPress Installs, please think of us if you need a custom theme or plugin developed! Use documented code examples on the settings page to modify the expected output.

How to

After activating and after updating the plugin’s settings go to wp-admin > Users > All Users and feature a few users. To use the ‘Featured Users’ plugin edit a page and add the ‘Featured Users’ shortcode or update a sidebar and add the ‘Featured Users’ widget.

Shortcode Paramaters

[rd-featured-users role=”administrator,author” avatar=”yes” max=”100″]

  • role = A comma-separated list of roles of the users you want to include in the query. Note the settings page can override this. The default is all roles again unless the settings page specifies which to allow.
  • avatar = Options are yes or no, specify whether to show or not show the users’ avatar image. The default is no.
  • max = The maximum number of users to display.

Filters

WordPress filters allow a ‘developer’ to modify aspects of the ‘Featured Users’ plugin without editing the core plugin. If you are not familiar with filters please read this before continuing.

  1. ‘featured-users-args’, https://codex.wordpress.org/Class_Reference/WP_User_Query
  2. ‘featured-users-css’, url to css file
  3. ‘featured-users-JS’, url to js file
  4. ‘featured-user-shortcode-row’, user row in shortcode and widget
  5. ‘featured-user-shortcode-return’, shortcode and widget content

Support

For custom WordPress plugin and theme development requests email us at info@reactivedevelopment.net or go to https://www.reactivedevelopment.net/. If you have questions or requests for this plugin go to https://wordpress.org/support/plugin/featured-users-wordpress-plugin or for quick and paid support go to https://www.reactivedevelopment.net/contact/project-mind/?plugin=featured-users to message us.