I am creating a widget for wp which needs to be able to appear in multiple instances within a page. This widget basically draws data from another server and displays them. This is OK so far.
What I am now contemplating is this:
Each of the instances must have its own settings – which are quite a lot. It is obvious how I can include some settings in the space provided in wp-admin/widgets.php, however I find this space quite limited.
So the question is:
If I create a page that manages my plugin under “Settings”, can this page be made so that it knows whether the administrator has more than one instances of the widget active, and dynamically add a settings page (in the form of a tab perhaps)?
Otherwise, can I create a “Settings” page in the actual widget in the front-end, that is aware (and is only active) if the administrator is logged-in?
These are the two approaches I could think of, any advice would be very much appreciated. Please let me know if something is not clear.
- The topic ‘Settings for multiple instances of a widget’ is closed to new replies.