Home Plugins logged in conditional text widget
Logged In Conditional Text Widget logo

Logged In Conditional Text Widget

by Paul Gregory on WordPress.org

Adds text/list widgets - one only shows if user is logged in, and the other only shows if a user is not logged in. A third shows regardless.

(1)
The "Text (If Logged In)" widget

The "Text (If Logged In)" widget

Adds three widgets – “Text/List”, “Text/List (If Logged In)” and “Text/List (Not Logged In)”. These can be used much like the normal Text widget, except two of them only display if the condition is met.

Potential Uses:
* Add a link to a Register page, along with some text promoting registration (for example on a site with the bbPress plugin)
* Display adverts to users who are not logged in
* Display useful links to users who are logged in.
* Display a nice list to everyone.

Because the widgets are separate, you can have the logged-in widget in a different place to a logged-out widget. You don’t even have to have pairs of widgets.

Unlike the normal Text widget which just has a toggle for paragraph on/off, this widget has four display options:

  • No formatting
  • Add paragraphs
  • Bullet list (ul)
  • Numbered list (ol)

The list options are useful if you are adding a number of links – simply add each one on a new line and they’ll be turned into a bullet. Please note that this plugin adds no CSS. Often themes style the lists within a widget to make menus look nice, so your theme may (for example) prevent numbers from showing. See FAQ.

You may find that the Text/List widget is useful even without the logged-in / logged-out conditional.

Active installations10+
Weekly downloads
14+0.00%
Version0.9.2
Last updated3/19/2014
WordPress version2.8
Tested up to3.7.41
Tags
conditionalloginregisterwidget