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 noticed that if you put the same widget in two different widget slots (primary and secondary for instance) only the first one will appear on the page. The second slot will be empty.

How to solve that problem and allow my widget (a custom menu) to appear twice on my page ?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

It sounds like a problem with that particular widget or if not that then your theme.

Try again with a default theme and one of the wp widgets.

Works fine with those.

share|improve this answer
    
Thanks anmari the problem was indeed my theme. I have multiple loops on my front page (each using its own WP_Query instance) but the last loop re-used the default WP_Query instance. I made this loop use its own instance of WP_Query too, and the problem is gone. I see absolutely no relationship between multiple instances of a custom menu widget and multiple uses of the default WP_Query object. So this problem will remain a mystery to me. –  Mike Nov 16 '11 at 11:19

Older widgets might not use the Widget API (from 2.8) or the proper function to allow for multiple instances (pre 2.8).

  1. You can try and find a more updated plugin.
  2. You can rewrite the plugin to use the Widget API
  3. You can possibly add this older function into the current plugin with multiple id_base's wp_register_widget_control

The latter is not recommended but might be easier to implement in your case.

share|improve this answer

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.