I am assuming while writing this post that I have a clear understanding of the theme customizer API:
There are sections → Under which we have Panels → and under these panels we have Fields.
I am unable to add Panel in the desired Location
Suppose I have created a section Named: newsletter→
$wp_customize->add_section( 'newsletter', array( 'title' => __( 'Newsletter', 'twentytwelve' ), 'priority' => 41, ) );
And under this section, there are many fields. Let me show one example →
$fields = array( 'type' => 'text', 'settings' => 'twentytwelve_mailchimp_key', 'label' => __( 'MailChimp API Key', 'my_textdomain' ), 'section' => 'newsletter', 'default' => esc_attr__( 'Please enter your key', 'my_textdomain' ), 'priority' => 10, );
As mentioned above there are many such fields(say there are 12 such fields).
As we put fields under a section by using this
'section' => 'newsletter',
How can we put a field under panel also?