Support » Plugin: Widget Logic » [Plugin: Widget Logic] How to display a widget just for one particular admin?

  • Resolved SuperCougar

    (@supercougar)


    Hi,

    I’d like a widget to appear only when “I” am connected as an administrator.

    There are other admins on my blog and I don’t want the widget to be displayed for them or for anybody else.

    Could you please help me? I couldn’t find the correct syntax, even after consulting the conditional tags section.

    The following code works, but for all admins not just for me:

    current_user_can(‘administrator’)

    Thanks in advance for your help.

    http://wordpress.org/extend/plugins/widget-logic/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Widget Logic] How to display a widget just for one particular admin?’ is closed to new replies.