Title: Logged In Conditional Text Widget
Author: Paul Gregory
Published: <strong>Mehefin 8, 2011</strong>
Last modified: Mawrth 19, 2014

---

Search plugins

Nid yw’r ategyn hwn **wedi cael ei ddiweddaru ers 3 ryddhad mawr**. Efallai nad 
yw’n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio
gyda fersiynau mwy diweddar o WordPress.

![](https://s.w.org/plugins/geopattern-icon/logged-in-conditional-text-widget.svg)

# Logged In Conditional Text Widget

 Gan [Paul Gregory](https://profiles.wordpress.org/paulgregory/)

[Llwytho i lawr](https://downloads.wordpress.org/plugin/logged-in-conditional-text-widget.0.9.3.zip)

 * [Details](https://cy.wordpress.org/plugins/logged-in-conditional-text-widget/#description)
 * [Reviews](https://cy.wordpress.org/plugins/logged-in-conditional-text-widget/#reviews)
 *  [Installation](https://cy.wordpress.org/plugins/logged-in-conditional-text-widget/#installation)
 * [Development](https://cy.wordpress.org/plugins/logged-in-conditional-text-widget/#developers)

 [Cefnogaeth](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/)

## Disgrifiad

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.

## Lluniau Sgrin

[⌊The "Text (If Logged In)" widget⌉⌊The "Text (If Logged In)" widget⌉[

The “Text (If Logged In)” widget

## Gosod

There isn’t much to do.

 1. Upload `logged-in-conditional-text-widget.php` to the `/wp-content/plugins/` directory(
    or install via Add Plugins – search for Logged In Conditional Text Widget or author
    Paul Gregory)
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Widgets where you’ll see three new widgets: “Text/List (If Logged In)”, “
    Text/List (Not Logged In)”, “Text/List”.
 4. Add and configure widget instances in the normal way.
 5. You may need to tweak your theme’s CSS to get numbered lists to show as desired.
    See FAQ. The UL and OL have a class of ‘textlistconditional’ which you can target
    if required.

## Cwestiynau Cyffredin

  Why doesn’t my numbered list have numbers?

Most likely, your theme is overriding the default styling of the LI (list item) 
element so that the number/bullet is hidden. This plugin does not include any CSS.
However, the UL and OL have a class of ‘textlistconditional’ which you can target
if required in your theme’s CSS.

  What about internationalisation?

All text strings are in the pgloggedintext domain. If you’d like to submit a translation,
please do.

## Adolygiadau

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

### 󠀁[Working Perfect](https://wordpress.org/support/topic/working-perfect-11/)󠁿

 [convictedvapour](https://profiles.wordpress.org/chronicbubble/) Medi 3, 2016

As described and works perfectly on WordPress and BuddyPress. Thanks you a life 
saver!

 [ Read all 1 review ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/)

## Contributors & Developers

“Logged In Conditional Text Widget” is open source software. The following people
have contributed to this plugin.

Cyfranwyr

 *   [ Paul Gregory ](https://profiles.wordpress.org/paulgregory/)

[Translate “Logged In Conditional Text Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/logged-in-conditional-text-widget)

### Interested in development?

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

## Cofnod Newid

#### 0.9.3

 * Readme changes

#### 0.9.2

 * Logged in and Logged Out reuse same widget code, actually from the new third 
   type which is a text widget without conditions.
 * Shows title in editor when widget minimised
 * Some labelling changes, e.g. now “Text/List”.
 * Allows shortcodes
 * Class on the UL and OL to assist CSS targeting

#### 0.9.1

 * Bugfix release (2014).

#### 0.9

 * First release (2011)

## Meta

 *  Version **0.9.2**
 *  Last updated **12 blynedd yn ôl**
 *  Active installations **10+**
 *  WordPress version ** 2.8 neu uwch **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/logged-in-conditional-text-widget/)
 * Tags
 * [conditional](https://cy.wordpress.org/plugins/tags/conditional/)[login](https://cy.wordpress.org/plugins/tags/login/)
   [register](https://cy.wordpress.org/plugins/tags/register/)[widget](https://cy.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://cy.wordpress.org/plugins/logged-in-conditional-text-widget/advanced/)

## Graddau

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/reviews/)

## Cyfranwyr

 *   [ Paul Gregory ](https://profiles.wordpress.org/paulgregory/)

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/logged-in-conditional-text-widget/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://paulgregory.org.uk/donate)