Viewing 3 reply threads
  • Author
    Posts
    • #5678
      Gabe Shackle
      Member

      I’m using 0.9.9.7 with a very basic plugin and am unable to get field values to update. They save correctly initially, but then once a value has been set the field values no longer change. add_more fields do update but only when a new value has been added to the list. Changing existing rows in the add_more entry does not work.

      Here is the code I’m working with:

      <?php
      /*
      Title: My Metabox
      Description: Sample Metabox
      Post Type: page
      */
      
      piklist( 'field', array(
      	'type'  => 'text',
      	'field' => 'field_one_magic',
      	'label' => 'First Field',
      	'columns' => '6',
      ) );
      
      piklist( 'field', array(
      	'type'  => 'colorpicker',
      	'field' => 'field_two_magic',
      	'label' => 'Second Field',
      	'add_more' => true,
      	'columns' => '6',
      ) );
    • #5683
      Steve
      Keymaster

      @gabeshackle– Welcome to the Piklist community!

      The WordPress default custom fields meta-box interferes with Piklist fields. You need to unregister it. Use remove_post_type_support:

      remove_post_type_support( 'page', 'custom-fields' );

      This will be fixed in the next version of Piklist.

    • #5687
      Gabe Shackle
      Member

      That did it, thanks!

    • #5688
      Steve
      Keymaster

      Great! Enjoy…

      Closing ticket.

Viewing 3 reply threads
  • The topic ‘Field values not updating’ is closed to new replies.