diff --git a/includes/post-brochures.php b/includes/post-brochures.php index ec287cb..667bd81 100644 --- a/includes/post-brochures.php +++ b/includes/post-brochures.php @@ -7,6 +7,8 @@ function homegrade_brochure_post_title_updater($post_id) $my_post['ID'] = $post_id; $fields = get_fields($post_id); + if (!$fields) return; + $brochureTaxonomy = $fields['publications_taxonomy']; if (!$post_id) return;