Good day. I registered a custom field, here is the code how I did it.
code
Now I need to display this data inside the widget in which the data is filled.
With the help of which Actions can I bind to display what content at the very beginning of the widget?
I need to display my content in the widget markup, after the first wrapper.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi Сергей
To display your custom field data just after the first wrapper in your widget’s markup, try using the
'siteorigin_widgets_template_variables_' . $this->id_basefilter to add your custom field to the template variables, then update your widget’s template (e.g., tpl/default.php) to show the data after the opening wrapper, likeFor details, see the Template Variables Filter documentation.
Thanks
Andrew
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.