Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-04-10, 09:42 AM   #1
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Wordpress-different widgets on different pages?

I might be missing something basic here, but is there a way to have different widgets in WP for individual pages? I set up widgets and I set up pages. The same widgets appear on every page. Would be nice to have cam widgets appear on cam page...etc.
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-04-10, 11:57 AM   #2
HotwivesOnline
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
HotwivesOnline's Avatar
 
Join Date: Apr 2008
Location: Blogosphere.
Posts: 28
Send a message via Yahoo to HotwivesOnline
Yes...you can define multiple dynamic sidebars in your theme. Then you can use some PHP in your theme so that WordPress can determine what kind of page it's delivering, and tell it to deliver a different sidebar based on that.

A lot of themes come with just one dynamic sidebar registered. To add more, you need to be comfortable editing your functions.php file in your theme to register it.

This tutorial might get you started:

http://www.quickonlinetips.com/archi...press-widgets/

The concept works in WP 2.5 too.

Great question! Looking for the answer got me thinking. I think I'm going to create multiple sidebars for my site. I don't want all my categories and monthly archive widgets to show up on post pages (because they make the page unbearably long).

= )

--David
__________________
Allie's husband David
Here's my blog at Hot Wife Allie | Since Sept. 2004
HotwivesOnline is offline   Reply With Quote
Old 2008-04-10, 02:05 PM   #3
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Excellent, great resource there. I usually screw everything up completely when I edit code, although sometimes i actually make backups...
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-04-11, 04:59 PM   #4
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
It's much easier if your not a widget head!
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2008-06-03, 07:51 AM   #5
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
I have to bump this thread to say thanks Luscious for asking this question and thanks Hotwives for your answer.

I'm messing around with a new Widgetised theme that has 2 sidebars on the right hand side and I want the sidebars to be different for the post pages.

I've tried to call a different sidebar using the template include thing but I can't for the life of me get it to work. The page loads up nicely but the sidebar bit just comes up blank.

I like these widget things because I'm still a code nancy at heart although after all this messing about I'm getting the hang of php a bit. Well, up to this point, where I'm just stuffed if I know what's wrong.

In any case, I'll have a play with this.

And you know what else? I can find answers to my WP questions quicker here than on the official site.
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2008-06-03, 08:01 AM   #6
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
YAY! I got it to work!!

Group hug. I love you guys.
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2008-06-05, 03:41 PM   #7
HotwivesOnline
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
HotwivesOnline's Avatar
 
Join Date: Apr 2008
Location: Blogosphere.
Posts: 28
Send a message via Yahoo to HotwivesOnline
Quote:
Originally Posted by grandmascrotum View Post
YAY! I got it to work!!

Group hug. I love you guys.
Yay! That's awesome. I still haven't tried it on my site yet. I want to, because I hate how the sidebar makes the page SO long on post pages. I'd like to not display my categories on certain short pages, for example.
__________________
Allie's husband David
Here's my blog at Hot Wife Allie | Since Sept. 2004
HotwivesOnline is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:38 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc