Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Different widgets showing up on different pages.


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 12, 2010, 01:47 PM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I use Twitter and Facebook feeds in the side bars on my site. I would like to have the feed coincide with the category on the Category page. It seems the easiest thing to do is to set the Right Side Bar to run on the main page and the Right Inner Side Bar to run on the Category page. I could load separate widgets for the separate pages into the specific side bars. This seems like a simple initial solution...
What if I have more than two Category pages? Is the best solution to use a separate Side Bar for each Category, or can I somehow code the widgets to load by page? If page### the load Widget1....?
  #2  
Old Feb 13, 2010, 05:33 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
check out some of the widget logic plugins
  #3  
Old Feb 15, 2010, 11:23 AM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
Thanks I'll take a look.
  #4  
Old Feb 22, 2010, 02:00 PM
Toby
 
2 posts · Feb 2010
Reading this thread clued me in to the Widget Logic add-on and it works great for applying a widget item to single pages or categories.

One question though --- can an item be set for more than one page, and if so, what's the syntax that goes in the Widget Logic box?

If I type in is_page('Home') it works fine for that one page. If I try adding another page it all messes up.
  #5  
Old Feb 22, 2010, 04:04 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
check out http://codex.wordpress.org/Conditional_Tags

is_page(array(42,'about-me','About Me And Joe'))
Returns true when the Pages displayed is either post ID 42, or post_name "about-me", or post_title "About Me And Joe". Note: the array ability was added at Version 2.5.
  #6  
Old Feb 22, 2010, 04:30 PM
Toby
 
2 posts · Feb 2010
Thanks, JD, that looks like what I'll need.

And thanks for the conditional tags link. When you're new to this like I am, "conditional tags" is not necessarily a term you clue in to.

I really don't get php. I've only learned how to get around in HTML.
  #7  
Old Mar 4, 2010, 09:46 AM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I am using !is_category(83) to remove widgets on a specific page. It works perfect in the right side bar, but seems to have no effect on the Left sidebar. Is this because the page calls the left sidebar before it starts the loop?
  #8  
Old Mar 4, 2010, 02:54 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
ThaddeusB1 - where are you using that code?
  #9  
Old Mar 24, 2010, 03:35 PM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I am using that code in the widget box, in the Widget logic box where it asks for the code. If the widget is in the Right sidebar the code works and the widget appears(or not) correctly, but when located in the Left sidebar, the logic does not have any effect.

This led me to think that the code was calling for the side bar, pulling general widgets, before running the loop which identifies the page as a category page...

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round Bullets showing in IE as well as default 'blocks' in widgets jdwrite Sidebars & Widgets 1 Jan 27, 2010 03:08 PM
[SOLVED] Comment form not showing on pages Keikurono Comments, trackbacks & pings 17 Dec 28, 2009 04:12 AM
widgets are not showing in right sidebar aquilaciencia Sidebars & Widgets 5 Aug 26, 2009 09:46 AM
[SOLVED] Widgets showing compressed in IE and normal in Firefox wmoura Sidebars & Widgets 2 Jun 4, 2009 07:36 AM
Posts showing up twice on category pages? michiganbasketball Atahualpa 3 Wordpress theme 1 Mar 12, 2009 04:56 PM


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


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