|
Dynamic widgets
|
|
07-07-2010, 10:33 PM
Post: #1
|
|||
|
|||
|
Dynamic widgets
Not sure how to explain this, so I'll do my best...
I am using text widgets to display two ads in my sidebar, one on top of the other. Is there a piece of code or another plugin that I can specify which ad appears on top depending on the page or post title or content/context etc? Cheers in advance!
Linkwheel Bandit Fully Automated Multi-Tiered LinkWheels
|
|||
|
07-08-2010, 04:16 AM
Post: #2
|
|||
|
|||
|
RE: Dynamic widgets
You could try a plugin called widget logic http://wordpress.org/extend/plugins/widget-logic/ which could be configured to achieve this, but you may need to duplicate one of the text widgets, ie. textwidget 1, textwidget2, texwidget1copy.
Then as an example, say we wanted 1 then 2 on page 17, but 2 then 1 on page 18, then using the widget logic field: textwidget 1- is_single('17') textwidget 2- is_single('17,18') textwidget 1copy- is_single('18') As long as you only have a few text ads you want to do this with, then it should be okay, anyway have a play with it and see how you go! I recommend:
Knowledge is knowing that tomato is a fruit - Wisdom is knowing not to put it in fruit salad!
|
|||
Thank given by |
llyndonium |
|
07-08-2010, 04:35 PM
Post: #3
|
|||
|
|||
|
RE: Dynamic widgets
Thanks CoolyKid!
That's just what I'm looking for! It takes a little thinking to get it to work but it's very effective. To anyone that wants to display content in a dynamic way , I would recommend this plugin - I think it has a lot of potential as you can use WP conditional code or PHP Thanks again.
Linkwheel Bandit Fully Automated Multi-Tiered LinkWheels
|
|||
|
07-08-2010, 09:23 PM
Post: #4
|
|||
|
|||
| RE: Dynamic widgets | |||
Thank given by |
llyndonium, Jack |
|
07-08-2010, 09:42 PM
Post: #5
|
|||
|
|||
|
RE: Dynamic widgets
Now that looks good! I think that will be more appropriate to what I'm doing as you can easily set the default widget set.
Thanks!
Linkwheel Bandit Fully Automated Multi-Tiered LinkWheels
|
|||
|
07-09-2010, 12:19 AM
Post: #6
|
|||
|
|||
RE: Dynamic widgets
(07-08-2010 09:23 PM)srikat Wrote: Want more power? Super awesome srikat! I'm installing it right now! Jack ugh! Ok Great Plugin, BUT. Before you use it be sure to back any customization to any widgets (such as any html in text widgets) you have BEFORE you activate this plugin. I activated and lost everything I had. Yes, I can put it back. But I could have easily done it via copy & paste had I known this would happen. Ok I found them, they were in my inactive widgets section. Just need to insert them now. But they are there. Ultra Spinnable Articles | SEONuking | Commission Vantage | Membership To Go | King Commissions | Rip Curl Commissions |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)






Thank given by