PHP conditional for custom field Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › PHP conditional for custom field This topic has 1 reply, 2 voices, and was last updated 5 years, 4 months ago by Ernest Marcinko. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts January 12, 2021 at 5:34 am #31076 pbpyrojust18Participant Is it possible to check if an ACF is empty or not with !empty or empty on <?php the_field('divi_overlays_id', $r->id); ?> ? Such as <?php if (!empty(the_field('divi_overlays_id', $r->id)): ?> https://resources-marqeta-ms.pantheonsite.io/resources/ /wp-content/themes/Marqeta/asp/vertical.php January 12, 2021 at 2:23 pm #31084 Ernest MarcinkoKeymaster Sure, you can use any PHP code within those files, they are regular PHP files. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In