BACK TO DIRECTORY

Logged In Conditional Text Widget

by Paul Gregory

5.0
(1 ratings)

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.

Screenshots

The "Text (If Logged In)" widget

The "Text (If Logged In)" widget

Plugin Details

Active Installs
10
Total Downloads
5,269
Version
0.9.2
Requires WP
2.8
Requires PHP
—
Tested Up To
3.7.41
Added
2011-06-08
Last Updated
2014-03-19 2:43am GMT

Ratings

5
1
4
0
3
0
2
0
1
0