Viewing 2 reply threads
  • Author
    Posts
    • #6411
      mariusnicula
      Member

      Hello, I am having trouble after updating to the newer version. I can’t see the image field and can’t upload any images.
      Here is my code:
      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’,’piklist’,
      ‘options’ => array(
      ‘modal_title’ => ‘Add Image’,’piklist’,
      ‘button’ => ‘Add’,’piklist’
      ),
      ‘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
      ));

      And here is an image of how it looks like when inserting the information (see attachment).

      Thanks for all the great work!

      Attachments:
      You must be logged in to view attached files.
    • #6413
      mariusnicula
      Member

      I’ve figured it out, just changed a few things in the file upload field, like this:
      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
      )
      )
      )
      )

      But now I still have the problem of ‘eld]eld]’ in the backend. How do I remove this and is there any way to order the fields more nicely when viewed in wordpress?

      Attachments:
      You must be logged in to view attached files.
    • #6418
      mariusnicula
      Member

      any help please?

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