Viewing 3 reply threads
  • Author
    Posts
    • #6425
      mariusnicula
      Member

      I have a problem when creating any type of fields, because when I go to fill in the fields in WordPress, after every add more field, I get ‘eld]eld]’ and don’t know where it comes from. Please see attached images. It may not be any problem, but it sure wouldn’t look professional to the client. Thank you!

      Attachments:
      You must be logged in to view attached files.
    • #6431
      Jason
      Keymaster

      Hey @mariusnicula!

      What version of Piklist are you using? And are you using the 'template' attribute on the field? Can you please paste the field code here?

      Thanks!

    • #6441
      mariusnicula
      Member

      I am using the latest version, 0.9.9.8

      <?php
      /*
      Title: About us team
      Template: tpl_about
      */

      piklist(‘field’, array(
      ‘type’ => ‘group’,
      ‘scope’ => ‘post_meta’,
      ‘field’ => ‘team_members’,
      ‘fields’ => array(

      array(
      ‘type’ => ‘file’,
      ‘field’ => ‘member_image’,
      ‘scope’ => ‘post_meta’,
      ‘label’ => ‘Team Member Image’,
      ‘options’ => array(
      ‘modal_title’ => ‘Add Image’,
      ‘button’ => ‘Add’
      ),
      ‘validate’ => array(
      array(
      ‘type’ => ‘limit’,
      ‘options’ => array(
      ‘min’ => 1,
      ‘max’ => 1
      )
      )
      )
      ),

      array(
      ‘type’ => ‘text’,
      ‘scope’ => ‘post_meta’,
      ‘field’ => ‘member_name’,
      ‘label’ => ‘Team Member Name’,
      ‘position’ => ‘wrap’
      ),

      array(
      ‘type’ => ‘text’,
      ‘scope’ => ‘post_meta’,
      ‘field’ => ‘member_title’,
      ‘label’ => ‘Team Member Title’,
      ‘position’ => ‘wrap’
      ),

      array(
      ‘type’ => ‘textarea’,
      ‘field’ => ‘member_description’,
      ‘label’ => ‘Team Member Description’,
      ‘attributes’ => array(
      ‘rows’ => 10,
      ‘cols’ => 50
      )
      )

      ),
      ‘label’ => ‘Team Members’,
      ‘position’ => ‘wrap’,
      ‘add_more’ => true
      ));

      ?>

    • #6448
      Steve
      Keymaster

      @mariusnicula– Remove all wrap parameters. They are not needed here.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.