Home>Support>Get widget instance in a row

Get widget instance in a row

Hi.
I want to get information of the widget instances I have in my row with PageBuilder to make another widget get all the entries except the ones that are selected in the widget instances.

See the following in stackoverflow, but what they answered is only for sidebars or native wordpress stuff, but not for PageBuilder.
https://stackoverflow.com/questions/62161300/wordpress-how-to-get-the-information-of-a-widget-instance/62299781#62299781

Thank you.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Joaquinvilchez,

    Unfortunately, there isn’t a simple way to do this. You’ll need to iterate the SiteOrgin Page Builder layout and extract the required information. You can get the page builder layout by replicating this code. I recommend looking over the generate_code method too get a general idea of how we iterate through the layout. For reference, we start processing the layout here.

    Kind regards,
    Alex

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More