This topic contains 9 replies, has 6 voices, and was last updated by  Steve 4 weeks, 1 day ago.

  • Author
    Posts
  • #9308

    Ico
    Participant

    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

    Pierre Brihat
    Participant

    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
    Participant

    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://docs.piklist.com/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

You must be logged in to reply to this topic.