WordPress.org

Ready to get started?Download WordPress

Forums

Using the_widget to call up a specific WP_Widget_Text instance (1 post)

  1. michalien
    Member
    Posted 4 years ago #

    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:

    http://wordpress.org/support/topic/330950?replies=7

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags