Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #7710
      nirjhor
      Participant

      Whenever I add this widget to multiple widget areas, the later ones doesn’t save at all.
      Am I doing somethoing wrong.

      Here is my code for my piklist widget:

      social-link-form.php

       <?php
      piklist('field', array(
        'type' => 'text',
        'field' => 'widget_title',
        'label' => 'Title'
      ));
      piklist('field', array(
        'type' => 'group',
        'field' => 'social_media_container',
        'label' => '',
        'fields' =>
        array(
            array(
            'type' => 'group',
            'field' => 'single_social_media',
            'label' => '',
            'add_more' => true,
            'fields' => array(
            	array(
                'type' => 'select',
                'field' => 'social_icon',
                'label' => 'Social Media',
                'columns' => 4,
                'choices' => array(
                  '' => 'Select',
                  'facebook' => 'Facebook',
                  'twitter' => 'Twitter',
                  'linkedin' => 'LinkedIn',
                  'google+' => 'Google+',
                  'behance' => 'Behance',
                  'pinterest' => 'Pinterest'
                )
        			),
              array(
                'type' => 'text',
                'field' => 'social_link',
                'label' => 'Link',
                'columns' => 8,
              )
            )
      		)
      	)
      ));
      
      ?>
      

      social-link.php

      
      <?php
      /*
      Title: Social Links
      */
      ?>
      <div class="footer-social-item single-footer">
      <ul><?php foreach($settings['social_media_container']['single_social_media'] as $social_list) { echo '<li><a target="_blank" href="'.$social_list['social_link'].'"><i class="fa '.$social_list['social_icon'].'"></i></a></li>'; } ?></ul>
      </div>
      
      
    • #7727
      Steve
      Keymaster

      @nirjhor– Do the widgets in Piklist demos work?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.