Title: User Role Widget Areas
Author: Rob Smelik
Published: <strong>March 5, 2015</strong>
Last modified: October 24, 2015

---

Search plugins

![](https://ps.w.org/user-role-widget-areas/assets/banner-772x250.jpg?rev=1267143)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/user-role-widget-areas/assets/icon-256x256.jpg?rev=1275939)

# User Role Widget Areas

 By [Rob Smelik](https://profiles.wordpress.org/rob-smelik/)

[Download](https://downloads.wordpress.org/plugin/user-role-widget-areas.zip)

 * [Details](https://twd.wordpress.org/plugins/user-role-widget-areas/#description)
 * [Reviews](https://twd.wordpress.org/plugins/user-role-widget-areas/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/user-role-widget-areas/#installation)
 * [Development](https://twd.wordpress.org/plugins/user-role-widget-areas/#developers)

 [Support](https://wordpress.org/support/plugin/user-role-widget-areas/)

## Description

### Description

This plugin allows you to selectively display content in your themes active widget
areas based on the user roles (Administrator, Editor, Author, Contributor or Subscriber)
of logged in users. It also comes with two user status based widget areas for displaying
content to all logged in users or all logged out users. All user role and status
based widget areas can be displayed in any existing sidebar or widget area within
your theme.

### Plugin Features

 * 5 User role based widget areas, one for each of the standard WordPress user roles.
 * 2 User status based widget areas, one for logged in users and one for logged 
   out users.
 * 2 Widgets for displaying your new widget areas on the front end (public site).
 * Additional shortcodes for displaying your user role and user status based widget
   areas.
 * The ability to hard code the script into your theme that displays the widget 
   areas on the front end.
 * Uses standard WordPress [Roles and Capabilities](https://codex.wordpress.org/Roles_and_Capabilities)
   functions.
 * Well documented, lightweight code that is built for speed (the plugin itself 
   is only 11kb).

### Rate The Plugin

If you like this plugin and find it useful please take a moment to [rate it](https://wordpress.org/support/view/plugin-reviews/user-role-widget-areas#postform).
Thanks!

## Screenshots

[⌊screenshot-1.jpg⌉⌊screenshot-1.jpg⌉[

screenshot-1.jpg

[⌊screenshot-2.jpg⌉⌊screenshot-2.jpg⌉[

screenshot-2.jpg

[⌊screenshot-3.jpg⌉⌊screenshot-3.jpg⌉[

screenshot-3.jpg

[⌊screenshot-4.jpg⌉⌊screenshot-4.jpg⌉[

screenshot-4.jpg

[⌊screenshot-5.jpg⌉⌊screenshot-5.jpg⌉[

screenshot-5.jpg

## Installation

### Installation

 1. In WordPress go to Plugins > Add New and search for “User Role Widget Areas”.
 2. Install and activate the plugin using the built in WordPress plugin installer.
 3. Go to Appearance > Widgets. You will notice a new set of user role and status based
    widget areas. Drag any widget into those areas that you desire.
 4. Drag the installed URWA display widgets to the sidebar or widget area where you
    want your user role based widgets to appear.
 5. Refresh your public site to see role based widgets and log out or log in as a different
    user role to see the widgets change.

### Additional Usage – Shortcodes

Two shortcodes come installed with this plugin.

The following shortcode will display the role based widgets that you have defined
on the Appearance > Widgets page in WordPress:

[user-role-widget-areas]

The following shortcode will display the User – Logged In widget area:

[user-status-widget-areas]

### Additional Usage – Hardcoding

You can also hardcode the dynamic widget areas into your theme using the following
PHP code.

The following code will display the role based widgets that you have defined on 
the Appearance > Widgets page in WordPress when placed in your theme:

    ```
    <?php echo do_shortcode('[user-role-widget-areas]'); ?> 
    ```

The following code will display the status based widgets that you have defined on
the Appearance > Widgets page in WordPress when placed in your theme:

    ```
    <?php echo do_shortcode('[user-status-widget-areas]'); ?> 
    ```

### Advanced Styling

Each role based widget area gets wrapped in a unique ID allowing advanced users 
to individually style the widget areas. For more information on styling please reference
the plugin documentation link which appears in the Settings menu after activation.

## FAQ

  FAQ

Q: I dragged widgets into the User Role Widget Areas but they are not showing up
on the front end. Why?

A: You must make sure that you have placed the “URWA – Users By Role” widget into
any existing NON-USER widget area where you want to display specific widgets based
on user roles.

Q: I did the step above but the User Role widgets are still not showing up.

A: Make sure you have at least one widget in the widget area for the role you are
logged in as. For example: If you are logged in as an administrator drag a text 
widget into the Users – Administrators widget area and give it a title and some 
placeholder content. Go back to your browser and refresh.

## Reviews

![](https://secure.gravatar.com/avatar/c1aee8814945fadf9c63b6cfb8d5d0c76a22488ba7181342f3813efb47a89c35?
s=60&d=retro&r=g)

### 󠀁[Generates Error Messages](https://wordpress.org/support/topic/generates-error-messages/)󠁿

 [Pedro Magnifico](https://profiles.wordpress.org/pedro-magnifico/) June 30, 2017
1 reply

Immediately after activating I get this message when I load the plugins page: Warning:
Declaration of urwa_widget::widget() should be compatible with WP_Widget::widget(
$args, $instance) in /home/XXXXX/public_html/wp-content/plugins/user-role-widget-
areas/user-role-widget-areas.php on line 0 Warning: Declaration of urwa_widget_logged_in::
widget() should be compatible with WP_Widget::widget($args, $instance) in /home/
XXXXX/public_html/wp-content/plugins/user-role-widget-areas/user-role-widget-areas.
php on line 0

![](https://secure.gravatar.com/avatar/6e4bcdcb4749bb317b8260ca1bf9504a16088105d056a2b0d8c5cf0a145a688c?
s=60&d=retro&r=g)

### 󠀁[awesome](https://wordpress.org/support/topic/awesome-3829/)󠁿

 [Mike V. Gorbunov](https://profiles.wordpress.org/michael_zloi/) December 1, 2016
1 reply

that’s a great plugin! thank you

![](https://secure.gravatar.com/avatar/895ab65719e699ee50a6ea0b63fb02d368ddf81ec78f9722d9dffaa1bd525713?
s=60&d=retro&r=g)

### 󠀁[Great Function](https://wordpress.org/support/topic/great-function/)󠁿

 [learn2luvlove](https://profiles.wordpress.org/learn2luvlove/) September 3, 2016

Iv been searching for something like this or a while. Glad i found this. Great support
too from the author. Keep it up bro.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Rob Smelik ](https://profiles.wordpress.org/rob-smelik/)

[Translate “User Role Widget Areas” into your language.](https://translate.wordpress.org/projects/wp-plugins/user-role-widget-areas)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/user-role-widget-areas/),
check out the [SVN repository](https://plugins.svn.wordpress.org/user-role-widget-areas/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/user-role-widget-areas/)
by [RSS](https://plugins.trac.wordpress.org/log/user-role-widget-areas/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4

 * Minor updates to documentation
 * Minor updates to screenshots

#### 1.3

 * Update to the conditional statements to detect if a widget area is active which
   fixes a small error code that appeared when any user widget areas were left empty
 * Changed label of status based display widget to ‘URWA – Users by Status’ to better
   clarify the widgets functionality to users
 * Minor updates to documentation including the WordPress stable tag
 * Minor updates to screenshots
 * Tested functionality on a variety of themes and browsers

#### 1.2

 * Minor updates to documentation

#### 1.1

 * Initial release
 * Added registration for 5 user role based widget areas
 * Added registration for 2 user status based widget areas
 * Added registration for 2 widgets that display user role and status based widget
   areas on the front end
 * Added shortcode support for displaying user role and status based widget areas
   on the front end
 * Created a documentation page under the Settings menu which includes tutorial,
   additional usage, advanced styling, changelog and support content
 * Tested functionality on a variety of themes

## Meta

 *  Version **1.4**
 *  Last updated **11 years ago**
 *  Active installations **20+**
 *  WordPress version ** 3.9 or higher **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/user-role-widget-areas/)
 * Tags
 * [role](https://twd.wordpress.org/plugins/tags/role/)[sidebar](https://twd.wordpress.org/plugins/tags/sidebar/)
   [user](https://twd.wordpress.org/plugins/tags/user/)[widget](https://twd.wordpress.org/plugins/tags/widget/)
   [widget area](https://twd.wordpress.org/plugins/tags/widget-area/)
 *  [Advanced View](https://twd.wordpress.org/plugins/user-role-widget-areas/advanced/)

## Ratings

 3.7 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/user-role-widget-areas/reviews/)

## Contributors

 *   [ Rob Smelik ](https://profiles.wordpress.org/rob-smelik/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/user-role-widget-areas/)