Home>Support>How can i display the content from my own section array?

How can i display the content from my own section array?

By wordpress1, 7 years ago. Last reply by Alex S, 7 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hey guys,

i have my own siteorigin widget running. Everything works nice, and i can display all the input in my frontend except the ‘section’ array.

In my example, I can display a regular ‘text’ array with: . But what i need to show the ‘grouped_text’ inside my ‘pricelist’?

____________________

‘pricelist’ => array(
‘type’ => ‘section’,
‘label’ => __( ‘Preisliste’ , ‘widget-form-fields-text-domain’ ),
‘hide’ => true,
‘fields’ => array(
‘grouped_text’ => array(
‘type’ => ‘textarea’,
‘label’ => __( ‘A grouped text field’, ‘widget-form-fields-text-domain’ )
),
)
)

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

  1. 7 years, 14 days ago Alex S
    Hi, I Work Here

    Hi WordPress1,

    Based on your example, you can use:

    $instance['pricelist']['grouped_text']
    
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