Forum Replies Created
-
AuthorPosts
-
mariusniculaMemberHere is the code for that section:
<?php
/*
Title: Footer Section
Setting: piklist_settings
*/piklist(‘field’, array(
‘type’ => ‘group’,
‘scope’ => ‘post_meta’,
‘field’ => ‘footer_options’,
‘fields’ => array(array(
‘type’ => ‘file’,
‘field’ => ‘option_image’,
‘scope’ => ‘post_meta’,
‘label’ => ‘Option Image’,
‘options’ => array(
‘modal_title’ => ‘Add Image’,
‘button’ => ‘Add’
),
‘validate’ => array(
array(
‘type’ => ‘limit’,
‘options’ => array(
‘min’ => 1,
‘max’ => 1
)
)
),
‘columns’ => 12
),array(
‘type’ => ‘text’,
‘scope’ => ‘post_meta’,
‘field’ => ‘option_link’,
‘label’ => ‘Option Link’,
‘position’ => ‘wrap’,
‘columns’ => 6
),),
‘label’ => ‘Footer Networks’,
‘position’ => ‘wrap’,
‘add_more’ => true,
‘columns’ => 12
));?>
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
));?>
mariusniculaMemberany help please?
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. -
AuthorPosts