Support

Account

Home Forums Backend Issues (wp-admin) Quick edit fields are lost when post is programmed to future datetime

Solved

Quick edit fields are lost when post is programmed to future datetime

  • Hello,
    i have created the fields “grafei” and “dimofiles” which i added them to the post quick edit.

    The problem is that when i programm a post to be published eg. tomorrow, when the post is published, my acf fields are emptied.

    I have not found any sollution in the forums, what should i do? Is there any other specific hook i should add?

    Here is the code i am using: http://laravel.io/bin/NkjL5

    Thank you
    -Konstantinos

  • Hi @little_kostas

    I’m not sure wether it’s an issue with ACF or not.

    But looking at your code I see that you’re not using acfs update_field() function but rather update_post_meta().

    In order for field meta to appear properly in newly created posts where the meta hasn’t already existed you have to use update_field() with the field key NOT the field name. Do that and I think you should be fine!

  • OK thank you that worked!

  • No Problem! Glad I could help and best of luck in your project!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Quick edit fields are lost when post is programmed to future datetime’ is closed to new replies.