Support

Account

Home Forums General Issues Get field always retruns null in wp_insert_post hook. Reply To: Get field always retruns null in wp_insert_post hook.

  • When getting a field during the save process you must supply the post ID to get the value from or it will not return a value.

    
    $url  = get_field( "device_image_url", $post_id );