Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Display a set of widgets in random order?


  #1  
Old May 8, 2011, 09:27 PM
damian
 
22 posts · Feb 2010
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!
  #2  
Old May 9, 2011, 06:05 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You might be able to use widget logic and put a bunch of widgets in the sidebar then put a php random test in each one.

However, I don't think this is a very good idea. People are use to looking to the sidebar for constant information, links etc. I'm not sure I would revisit a site where the number of widgets and the actual widgets changed in a random order. It would be too confusing and distracting.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 12, 2011, 04:10 PM
damian
 
22 posts · Feb 2010
Come to think of it, you're probably right. Thanks for your reply.

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 11:44 AM.


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