Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Front-Page:

Recent Posts

Recent Comments

Single Post:

Recent Comments

Recent Posts

Is it possible to achieve this?

share|improve this question
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.