- This topic has 2 replies, 1 voice, and was last updated 5 years, 9 months ago by
mariusnicula.
-
AuthorPosts
-
-
May 3, 2016 at 2:51 am #6411
mariusniculaMemberHello, 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. -
May 3, 2016 at 3:14 am #6413
mariusniculaMemberI’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. -
May 3, 2016 at 10:37 am #6418
mariusniculaMemberany help please?
-
-
AuthorPosts
- You must be logged in to reply to this topic.