Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   How do I provide a conditional Widget in the sidebars? (http://forum.bytesforall.com/showthread.php?t=1870)

bgt Jun 1, 2009 02:13 PM

How do I provide a conditional Widget in the sidebars?
 
How do I display a widget conditionally in the sidebar? I have done this in other themes, but Atahualpa does not seem to have a sidebar.php. I want to display a set of pages using an instance of the Flexi Pages Widget, but only when the user is logged in at Level 1 (Contributor). I can do this using if ( $user_level ==1), but where should I put it? Any tips?

d_random Jun 1, 2009 02:16 PM

bgt-

Install the plugin "Widget Logic". I will add an input field to all of your widgets were you can add condition tags for each widget.

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

:)

Donny


All times are GMT -6. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.