Viewing 12 reply threads
  • Author
    Posts
    • #9308
      Ico
      Member

      Hi All,
      After updating Piklist 1.0.3 on WP 5.0.3 I noticed that custom metaboxes ( repeaters ) that worked , now are not saving in database. Everything worked normal, no changed in code. Does someone have such an issues and how you resolved this? Here is my code:

      <?php
      /*
      Title: Distributors list
      Template: page-distributors
      */
      
      piklist('field', array(
          'type' => 'group',
          'field' => 'distributors',
          'label' => __('Distributors', 'stk'),
          'list' => false,
          'description' => __('Dealers / Distributors.', 'stk'),
          'add_more' => true,
          'fields' => array(
              array(
                  'type' => 'text',
                  'field' => 'distributor_country',
                  'label' => __('Country', 'stk'),
                  'required' => true,
                  'columns' => 12,
                  'attributes' => array(
                      'placeholder' => 'Country'
                  )
              ),
              array(
                  'type' => 'text',
                  'field' => 'distributor_name',
                  'label' => __('Name', 'stk'),
                  'required' => true,
                  'columns' => 12,
                  'attributes' => array(
                      'placeholder' => 'Name'
                  )
              ),
              array(
                  'type' => 'text',
                  'field' => 'distributor_website',
                  'label' => __('Website', 'stk'),
                  'required' => false,
                  'columns' => 12,
                  'attributes' => array(
                      'placeholder' => 'Website'
                  )
              ),
              array(
                  'type' => 'text',
                  'field' => 'distributor_email',
                  'label' => __('E-mail', 'stk'),
                  'required' => false,
                  'columns' => 12,
                  'attributes' => array(
                      'placeholder' => 'E-mail'
                  )
              ),
              array(
                  'type' => 'text',
                  'field' => 'distributor_phone',
                  'label' => __('Phone', 'stk'),
                  'required' => false,
                  'columns' => 12,
                  'attributes' => array(
                      'placeholder' => 'Phone'
                  )
              )
          )
      ));
      
      ?>
    • #9309
      Steve
      Keymaster

      @bassta– I was able to reproduce the issue. I’ve added it to our list of bug fixes.

    • #9314
      abmsourav
      Participant

      Facing the same problem…

    • #9319

      Me too. Is is possible to revert to Piklist 1.0.2 ?

      Pierre

    • #9331
      Steve
      Keymaster

      You can download v1.0.2 at the bottom of this page: https://wordpress.org/plugins/piklist/advanced/

      Please let us know if it fixes your issue.

    • #9384
      oferli
      Participant

      @Steve,

      I have the same problem. downgrade to v1.0.2 didn’t solve it.

      I notice that it doesn’t save only in posts and pages, but do save when it is in custom post type

    • #9401
      thor
      Member

      I had a problem once with custom fields not being saved on pages – don’t know if it relates to this problem, but it worked for me. The workaround was to remove WP’s custom-fields:

      add_action( 'init', 'custom_fields_work' );
      function custom_fields_work() {
      	remove_post_type_support( 'page', 'custom-fields' );
      }
    • #9404
      Steve
      Keymaster

      Yup… that is the usually the case: https://piklist.github.io/docs/faq/fields-not-saving/

      • #9407
        oferli
        Participant

        @steve adding remove_post_type_support( ‘page’, ‘custom-fields’ ); disabled the custom fields BUT didn’t solve the issue. Piklist metaboxes are not saved.

        Just to make it clear … when I click on the update button it show the right saved value(s), BUT when I exit the edit page/post and re-enter it revert to the old values.

    • #9415
      Steve
      Keymaster

      Piklist is not fully compatible for WordPress 5.0+. Please use the Classic Editor plugin which allows it to work:

      Classic Editor

    • #9512
      James Mc
      Member

      Wish I had found this post earlier today…

    • #9513
      danibru
      Participant

      Recently, we have had to update WP to 5.2.3 and from then Piklist started to not save custom fields.
      Will be there a new release in short which is going to solve this problem? If not, is there any temporal fixing or patch we can apply for avoiding this bug?

      Thanks in advance!
      Dani.

    • #9514
      Steve
      Keymaster

      @danibru– Have you tried the code snippet above and the Classic Editor plugin?

    • #9515
      danibru
      Participant

      It works. Thanks!
      However, just to know, will we enjoy a new Piklist version shortly? Thanks in advance!

Viewing 12 reply threads
  • The topic ‘Piklist 1.0.3 + WP 5.0.3 – Metaboxes not saving’ is closed to new replies.