- This topic has 10 replies, 3 voices, and was last updated 6 years, 11 months ago by
Steve.
-
AuthorPosts
-
-
August 15, 2014 at 10:22 am #2239
jmayhakMemberI have registered a new custom post type with piklist via the filter hook “piklist_post_types”.
I see the post type in the admin side bar and each meta box that I put in /piklist/parts/meta-boxes using the post type key I created earlier.
However, when I click update, the data is not saved.
This functionality does work for me locally, but not on my staging environment. The code is the same.
What are some things that could be going wrong? The title saves, but not the data I set up in /piklist/parts/meta-boxes.
I’m using version 0.9.4.10
-
August 15, 2014 at 10:49 am #2240
SteveKeymaster@jmayhak– Please post your meta-box code, or zip it up and email to [email protected]
-
August 15, 2014 at 11:42 am #2242
jmayhakMember<?php
/*
Title: Employee Information
Post Type: employee
*/piklist(‘field’, array(
‘type’ => ‘text’,
‘field’ => ‘_scda_email’,
‘label’ => ‘Email’,
‘description’ => ”,
‘columns’ => 12,
‘attributes’ => array(
‘class’ => ‘text’
)
)); -
August 15, 2014 at 1:46 pm #2243
-
August 15, 2014 at 1:46 pm #2244
jmayhakMemberIt’s actually two of the ‘ character.
-
August 15, 2014 at 1:47 pm #2245
jmayhakMemberI think the visual editor turned it into a “
-
August 15, 2014 at 3:34 pm #2247
SteveKeymasterThis is saving for me. Did you create other meta boxes in this page?
-
August 15, 2014 at 3:35 pm #2248
jmayhakMemberIt’s just that one
-
August 15, 2014 at 4:49 pm #2252
SteveKeymasterPlease zip up your plugin and email to [email protected] We will take a look.
-
March 12, 2015 at 6:23 am #3445
actiontwoMemberHi,
I have the same problem, also i create a plugin to add more user profile, but i can only modify my account even i am supper admin so i can not edit other account.
And this is my meta-boxs code , it work on local but in server it not working
<?php
/*
Title: BWF Feature Image & Carousel
Description: Set feature image(s) for each page
Post Type: page
Order: 0
Collapse: true
*/
?><h3><?php
__(‘Enable or Disable the feature image for this page.’, ‘piklist_BWF’);
?></h3><?php
// Show Hide Toggle
piklist(‘field’,
array(
‘type’ => ‘radio’
, ‘field’ => ‘bwf_feature_image_toggle’
, ‘label’ => __(‘Show/Hide Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Toggle the display for the feature image.’,
‘piklist_BWF’)
, ‘value’ => ‘hide’
, ‘choices’ => array(
‘show’ => ‘Show’
, ‘hide’ => ‘Hide’
)
));
?><h3><?php __(‘Add a feature image module to this page.’, ‘piklist_BWF’); ?></h3>
<p><?php
__(‘This can be a single image, or add multiple images to create a carousel.’,
‘piklist_BWF’);
?></p><?php
piklist(‘field’,
array(
‘type’ => ‘group’
, ‘field’ => ‘bwfcp_feature_images’
, ‘label’ => __(‘Feature Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Content for each individual slide.’, ‘piklist_BWF’)
, ‘add_more’ => true
, ‘fields’ => array(
array(
‘type’ => ‘text’
, ‘field’ => ‘bwfcp_fi_title’
, ‘label’ => __(‘Slide Title’, ‘piklist_BWF’)
, ‘description’ => __(‘Headline text for the silde.’, ‘piklist_BWF’)
, ‘columns’ => 6
)
, array(
‘type’ => ‘textarea’
, ‘field’ => ‘bwfcp_fi_caption’
, ‘label’ => __(‘Slide caption’, ‘piklist_BWF’)
, ‘description’ => __(‘Caption text for the silde.’, ‘piklist_BWF’)
, ‘columns’ => 12
)
, array(
‘type’ => ‘text’
, ‘field’ => ‘bwfcp_fi_link’
, ‘label’ => __(‘Slide Link’)
, ‘description’ => __(‘Optional URL link, this will make the slide clickable.’,
‘piklist_BWF’)
, ‘columns’ => 6
)
, array(
‘type’ => ‘file’
, ‘field’ => ‘bwfcp_fi_images’
, ‘label’ => __(‘Slide Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Upload the image to display. Ideal format: 940px / 385px 72dpi .jpg’,
‘piklist_BWF’)
, ‘columns’ => 12
, ‘options’ => array(
‘modal_title’ => __(‘Add File(s)’, ‘piklist_BWF’)
, ‘button’ => __(‘Select or Upload an image’, ‘piklist_BWF’)
)
)
)
)); -
March 12, 2015 at 9:28 am #3449
SteveKeymaster@actiontwo– Please clarify:
1) You wrote, “I have the same problem”. Does this mean you field data is not saving? You posted this issue, is it the same?
2) You wrote, “also i create a plugin to add more user profile, but i can only modify my account even i am supper admin so i can not edit other account.” Is this an DIFFERENT issue? If so, please create a NEW ticket and explain in detail.
3) You wrote “And this is my meta-boxs code , it work on local but in server it not working”. Is this a third issue, or the same as the first one?
-
-
AuthorPosts
- You must be logged in to reply to this topic.