- This topic has 3 replies, 3 voices, and was last updated 5 years, 9 months ago by
Steve.
-
AuthorPosts
-
-
May 4, 2016 at 2:15 am #6425
mariusniculaMemberI 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. -
May 4, 2016 at 5:01 pm #6431
JasonKeymasterHey @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!
-
May 6, 2016 at 3:12 am #6441
mariusniculaMemberI 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
));?>
-
May 6, 2016 at 9:13 am #6448
SteveKeymaster@mariusnicula– Remove all
wrapparameters. They are not needed here.
-
-
AuthorPosts
- You must be logged in to reply to this topic.