I have a sidebar which might have any number of widgets. I can count the number of widgets that exist in the sidebar. How do I display randomly only one of the widgets in my sidebar at each page load?

Use: We have specials which we display as widgets, but we only want to display one widget’s content at a time in the footer of the site.

re: the count code

re: generating a random widget instance

Read more here: Display one widget instance in my sidebar


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: