WordPress.org

Ready to get started?Download WordPress

Forums

Automatically fetching all widgets assigned to a sidebar (2 posts)

  1. garethmoss
    Member
    Posted 4 years ago #

    Hi,

    I have multiple sidebars, and I'm assigning widgets to each, which is working fine in the back end.

    The problem is, I want each sidebar to fetch all the widgets assigned to it. But if I use dynamic_sidebar(1), or 2, 3, 4 etc, it just gets me the 1st widget assigned in the admin area, regardless of which sidebar it belongs to.

    Is there a way I can loop the widgets assigned to a specific sidebar?

    Thanks.

  2. garethmoss
    Member
    Posted 4 years ago #

    OK ignore my post, I had totally wrong end of the stick when understanding widgets and sidebars :-)

Topic Closed

This topic has been closed to new replies.

About this Topic