WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Widget inside a Widget (2 posts)

  1. ngoodfellow
    Member
    Posted 1 year ago #

    This is kind of a crazy idea... I'm trying to figure out how to accomplish this functionality for a plug-in.

    I would like a widget that can encompass other widgets

    This widget would allow you to click and drag other widgets inside it on the side bar.(similar to how the widget side bars work only inserting it into another widget instead of sidebar)

    If there isn't an easy way to accomplish this then what I would probably do is have my plugin crate a new widget area and then the widget would display this widget area inside the widget when inserted.

    Kinda confusing, I know... but when I get the plugin written it will make sense.

  2. ngoodfellow
    Member
    Posted 1 year ago #

    Update

    I went ahead and had my plugin create a new 'widget area' that I can put widgets into

    I then had the new widget call this 'widget area' if needed to display those widgets inside that widgets code

    I am using this to update my plugin:
    http://nathangoodfellow.us/my-posts/technology/wordpress-thickbox-auto-load-pop-load-pages-posts-shortcode

    That automatically pop-up a thick-box window when a page loads
    I am updating this code to include a widget and add settings so that the pop-up can be displayed every time, once per IP, once per IP per 24 hours ect...

Topic Closed

This topic has been closed to new replies.

About this Topic