Home>Support>How to pass data in the_widget()

How to pass data in the_widget()

By Sam Weiss-Gamtschi, 5 years ago. Last reply by Alex S, 5 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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 9 months ago Alex S
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More