Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Widgets on Pages (or not)

Old Feb 7, 2009, 04:38 AM
59 posts · Jan 2009
I'm adding widgets to my blog but they are not so relevent on the pages. Is it possible to have them not appear on pages or even have some and not others appear on pages
Old Feb 7, 2009, 05:07 AM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
This plugin might do that http://wordpress.org/extend/plugins/widget-logic/

AFAIK you'll insert PHP code into that plugin.

"If this is a page":
PHP Code:
"If this is not a page":
PHP Code:
"If this is a page with the ID V, W, X, Y OR Z"
PHP Code:
in_array$post->ID, array(VWXYZ) ) 
"If this is not a page with the ID V, W, X, Y OR Z"
PHP Code:
!in_array$post->ID, array(VWXYZ) ) 
If $post->ID doesn't work in the examples above try $wp_query->get_queried_object_id()

"If this is the page 'about' or the page 'products'"
PHP Code:
is_page('about') OR is_page('products'
"If this is the homepage" (includes page 2, page 3...):
PHP Code:
"If this is the real homepage" (and not page 2, 3..)
PHP Code:
is_home() AND !is_paged() 
"If this the static page that I selected as homepage"
PHP Code:
Old Feb 7, 2009, 05:37 AM
59 posts · Jan 2009
amazing - it works

thanks for all the effort and listing the tags too
Old Feb 10, 2009, 08:13 AM
35 posts · Feb 2009
Few more functions usable for this widget:




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing widgets on pages mactony Sidebars & Widgets 45 Nov 1, 2010 01:06 PM
Problem Customizing Widgets on Different Pages davidferris Sidebars & Widgets 1 Apr 27, 2009 08:00 PM
Need help creating pages with custom settings and widgets Humphrey Sidebars & Widgets 1 Apr 21, 2009 09:14 AM
Widgets produce blank pages - how can I fix this? bjt1t2t3 Sidebars & Widgets 0 Mar 15, 2009 10:05 AM
Set left sidebar widgets same distance from center area as right sidebar widgets daisy24 Sidebars & Widgets 2 Feb 19, 2009 05:11 AM

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

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