datadirt RSS Feed
3,931 happy readers
Subscribe now
Twitter
48.237 Followers
follow now

How to… use 1 widget in various WordPress Sidebars

22.05.2009, written by Ritchie Blogfried Pettauer, 9 Comments

Widget-enabled themes are a good thing, Martha Stew­art would prob­a­bly say — and right­fully so. Con­fig­ur­ing one’s side­bar directly via CMS and drag-and-drop is doubtlessly a nifty fea­ture we blog­gers don’t want to miss. To kick things up a notch, Word­Press allows for an infi­nite num­ber of dif­fer­ent Side­bars. This comes in very handy for putting dif­fer­ent side­bar con­tents on the blog home­page, the sin­gle post­ings and the sta­tic pages. But most blog­gers who start exper­i­ment­ing with mul­ti­ple side­bars expe­ri­ence a major draw-back: most plu­g­ins can only be used in one side­bar exclusively.

This means that if you have dif­fer­ent side­bars for your home­page and your sin­gle posts, you can­not for exam­ple include the tag cloud wid­get in both side­bars. (more info: How set up mul­ti­ple side­bars) But worry not, of course there is a very handy plug-in which solves this prob­lem: Dupli­cate Side­bar Wid­gets does what its name implies: it enables you to make up to 25 copies of any wid­gets, there­fore being able to use the same one in up to 25 side­bars. (You prob­a­bly won’t need that many, though.) btw: just in case any­thing goes badly wrong, you can always delete your widget-copies later. This solu­tion works for most wid­gets, but some com­plex scripts sim­ply refuse this treat­ment. (Top Com­men­ta­tors is one of those.)

But luck­ily, there’s Sam­sarin PHP Wid­get. While the stan­dard text-widget may only con­tain HTML but no php, the Sam­sarin Wid­get will gladly accept php input. So basi­cally the first step is to copy the php-widget using the afore­men­tioned Dupli­cate Wid­get Plu­gin, and in the sec­ond step you have to enter the desired php-function-call man­u­ally. This does not just sound like a bit of work and readme-digging, it actu­ally is — but using this method gives you total flex­i­bil­ity in design­ing your wid­getized sidebars.


So far, 9 Comments on "How to… use 1 widget in various WordPress Sidebars" haven been posted by my readers.

What\s your take?
  • mutuelle Identicon Icon
    mutuelle sagte am June 26, 2009 um 11:30 am

    Good review ritchie,It’s a help­ful tips.

    Like or Dis­like: Thumb up 0 Thumb down 0
  • assurance Identicon Icon
    assurance sagte am July 6, 2009 um 7:36 pm

    wow.. :)
    i have searched for this kind of how to for a long time when i was build­ing my word­press blog, but your arti­cle didn’t exist at this time..

    any­way, i keep the url and i’ll come here next time i need it :)
    thx !

    Like or Dis­like: Thumb up 0 Thumb down 0

    ritchie Identicon Icon

    you’re wel­come!

    Like or Dis­like: Thumb up 0 Thumb down 0
  • Katja Identicon Icon
    Katja sagte am July 18, 2009 um 8:30 pm

    Thank you very much for this review.

    Like or Dis­like: Thumb up 0 Thumb down 0
  • Martin Identicon Icon
    Martin sagte am August 8, 2009 um 11:19 pm

    Great review, thanks.

    Like or Dis­like: Thumb up 0 Thumb down 0
  • mutuelle Identicon Icon
    mutuelle sagte am September 30, 2009 um 6:04 pm

    Great blog, thank you

    Like or Dis­like: Thumb up 0 Thumb down 0
  • mutuelle santé Identicon Icon
    mutuelle santé sagte am October 19, 2009 um 1:02 pm

    thanks very much for this post, it was use­full for my activ­ity. i’ll by soon :)

    Like or Dis­like: Thumb up 0 Thumb down 0
  • ritchie Identicon Icon

    But be aware that this method is not nec­es­sary any more; cur­rent Word­Press ver­sions sup­port this multiple-widget func­tion­al­ity out-of-the-box.

    Like or Dis­like: Thumb up 0 Thumb down 0
  • mutuelle Identicon Icon
    mutuelle sagte am November 1, 2009 um 8:43 pm

    Thanks for your blog ! you’re right! this is use­full for my job.

    Like or Dis­like: Thumb up 0 Thumb down 0
?
datadirt.tribe
         Login | Register
via RSS datadirt RSS Feed
via Newsletter
aweber
EnglishFrenchGermanItalianPortugueseRussianSpanish
Newest Postings