WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to change the order of the widgets, for instance:


Recent Posts

Recent Comments

Single Post:

Recent Comments

Recent Posts

Is it possible to achieve this?

share|improve this question

Use Widget Logic « WordPress Plugins with PHP Code Widget « WordPress Plugins to use multiple widgets with the same function in one sidebar. Or create another sidebar and use the same widget in each; check the twentyten or twentyeleven themes for the sidebar and functions.php code.

share|improve this answer

Why not just create different sidebars or the two pages. One for front page and another for single posts?

Or in your your sidebar.php (or whichever template file is calling the widgets) you could use conditional code:

<?php if (is_single()) {?>
Widget html code here
<?php }?>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.