Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

How do I provide a conditional Widget in the sidebars?


  #1  
Old Jun 1, 2009, 03:13 PM
bgt's Avatar
bgt
 
1 posts · May 2009
Bristol
Send a message via Skype™ to bgt
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?
  #2  
Old Jun 1, 2009, 03:16 PM
d_random
 
51 posts · Apr 2009
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

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
No sidebars??? detectorx Sidebars & Widgets 3 Feb 2, 2010 06:33 AM
[SOLVED] Conditional Tag to exclude widget d_random Sidebars & Widgets 8 Jun 2, 2009 08:23 AM
Best way to have different sidebars for each Page Eric Bobrow Sidebars & Widgets 1 Apr 27, 2009 11:26 AM
Widget added and sidebars are gone jhughes817 Header configuration & styling 0 Apr 22, 2009 12:37 AM
Problem with widget width and sidebars in Explorer conon Sidebars & Widgets 2 Apr 6, 2009 08:22 AM


All times are GMT -6. The time now is 05:09 PM.


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