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 can i display the content from my own section array?

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

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.

Need fast email support? Get SiteOrigin Premium

Replies

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

    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.

Have a different question or issue?

Start New Thread