This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Get widget instance in a row

5 years ago · Last reply by Alex S 5 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 5 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread