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


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.