How Can A Widget With Only One Instance Be Defined?

Simple way would be to set some global variable on first widget run and check for it. Output nothing or informational message if it is already set.

Proper way would probably be to work with interface and remove widget from available when you add it to sidebar, but that is way out of my league.

Leave a Comment