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.

How to pass data in the_widget()

Open 1 reply developergeneral
7 years ago · Last reply by Alex S 7 years ago

I opend a thread, which was already closed by the community.

I want to pass data by using the_widget() function of wordpress. For example in the 404.php file.

Normally you are able to use

<?php the_widget($widget, $instance, $args); ?>

I tried it this way and my widget comes only with the default settings, which i insert in the get_widget_form(). If i use the SiteBuilder, everything works like a charm!

But not when i tried to insert the widget in a site without a SiteBuilder.

It’s clear to me how to pass data, but i want to use the widgets also in areas where a SiteBuilder is not available.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 7 years, 2 months ago

    Hi Sam,

    Are referring to this thread? If so, we only allow replies from the same account.

    Does my reply to your thread help?

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