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 »

Display a set of widgets in random order?


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

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old May 8, 2011, 09:27 PM
damian
 
22 posts · Feb 2010
Display a set of widgets in random order?

Can anyone tell me how to display a set of widgets in random order in a sidebar?

Specifically, every time someone visits a page/post they haven't visited before, I'd like them to see the widgets in a different order. But there are a few widgets I'd like to be "anchored" in place. So, for example, I'd like them to see:

Page/post 1 left sidebar:
widget 1
widget 2
widget 3
widget 4
widget 5
widget 6

Page/post 2 left sidebar:
widget 1
widget 2
widget 3
widget 6
widget 5
widget 4

Page/post 3 left sidebar:
widget 1
widget 2
widget 3
widget 5
widget 6
widget 4

Please note that I plan to use way more than 6 widgets, so I'll need some sort of randomize/shuffle function rather than hard-coding the widget order for each page. Also, it's okay (perhaps even preferable) if the widgets are displayed in a different order every time someone refreshes a page/post.

I looked for plug-ins and solutions elsewhere on the web, but I couldn't find anything.

Thanks in advance for any help anyone might provide!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use random image code to display random flash banner? blueprairie Header configuration & styling 0 Mar 18, 2010 01:30 PM
[SOLVED] Where do you set the page order PortMaria.62 Page & Category Menu Bars 2 Mar 3, 2010 10:26 PM
[SOLVED] random order of posts truthbrother Atahualpa 3 Wordpress theme 2 Feb 11, 2010 03:41 PM
Posts display in reverse order? WayneEarl Installing & running WordPress 1 Aug 10, 2009 04:38 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 03:51 PM.


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