Viewing 4 reply threads
  • Author
    Posts
    • #5298
      erikkubica
      Member

      Hi,

      as I seen on this forums not only I have this problem.

      Problem is that after adding post or page, when i want to update any kind of meta field, its not updated. I am using same fields using get_template_part in CPT´s where it works fine. Only post and page is affected. BUT when i click to show custom fields in display options and i edit field values here, it updates correctly.

      Setup:
      WP 4.4 with Piklist 0.9.9.X (because editor field works in repeated field)

      I have tried to debug the piklist plugin, it seems that in file class-picklist-form.php on line 3021

      “elseif (in_array($scope, array(‘post_meta’, ‘term_meta’, ‘user_meta’, ‘comment_meta’)))”

      when i do echo field name in foreach and i stop the execution after the foreach, then the fields is succesfully saved into database.

      Please let me know how i can fix that, its extremly urgent.

      Thank you.

      Attachments:
      You must be logged in to view attached files.
    • #5300
      Steve
      Keymaster

      Do the built in Demos work?

    • #5301
      erikkubica
      Member

      Thank you for reply.

      Piklist demos are CPT (post_type=piklist_demo) so yes, as i mentioned, CPT-s works, only post_type=post && post_type=page are bugged.

    • #5302
      Steve
      Keymaster

      Guessing the custom fields meta box is interfering.

      Try removing using remove_post_type_support

    • #5303
      erikkubica
      Member

      You are right, i have tried before the “remove_meta_box” that does not worked, but remove postype support works as expected. I hope piklist team will add an condition to detect this and do it automatically. And thank you for this great tool.

Viewing 4 reply threads
  • The topic ‘[v0.9.9.X] Post/Page meta fiels not updating, CPT works fine’ is closed to new replies.