Support » Themes and Templates » Using the_widget to call up a specific WP_Widget_Text instance

  • Hi,

    I’m trying to use multiple instances of the WP_Widget_Text widget in the expectation that ‘the_widget()’ template tag is capable of referencing each specific instance as required. So far, like JFK of this topic:

    the only way I can get this to work is by using the register_sidebar function to create extra ‘sidebars’. Each instance is then associated with the appropriate sidebar in the widget panel. Happy to be corrected, but this just feels like the wrong way to use the new widget API?

    Some of the information around seems to suggest that an individual instance of multiple instances of the same widget can be accessed with ‘number=x’ but my experimentation has not produced any positive results.

    Any and all help welcomed.

  • The topic ‘Using the_widget to call up a specific WP_Widget_Text instance’ is closed to new replies.