Viewing 10 reply threads
  • Author
    Posts
    • #2239
      jmayhak
      Member

      I 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

    • #2240
      Steve
      Keymaster

      @jmayhak– Please post your meta-box code, or zip it up and email to [email protected]

    • #2242
      jmayhak
      Member

      <?php
      /*
      Title: Employee Information
      Post Type: employee
      */

      piklist(‘field’, array(
      ‘type’ => ‘text’,
      ‘field’ => ‘_scda_email’,
      ‘label’ => ‘Email’,
      ‘description’ => ”,
      ‘columns’ => 12,
      ‘attributes’ => array(
      ‘class’ => ‘text’
      )
      ));

    • #2243
      Steve
      Keymaster

      @jmayhak– You have an error in your code.

      ‘description’ => ”, only has an opening quote. Either remove this parameter or close the quote.

      A good rule of thumb is to run wp_debug when you are developing to help spot errors.

    • #2244
      jmayhak
      Member

      It’s actually two of the ‘ character.

    • #2245
      jmayhak
      Member

      I think the visual editor turned it into a “

    • #2247
      Steve
      Keymaster

      This is saving for me. Did you create other meta boxes in this page?

    • #2248
      jmayhak
      Member

      It’s just that one

    • #2252
      Steve
      Keymaster

      Please zip up your plugin and email to [email protected] We will take a look.

    • #3445
      actiontwo
      Member

      Hi,

      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’)
      )
      )
      )
      ));

    • #3449
      Steve
      Keymaster

      @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?

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