Fallback Image Doesn't Work
-
I use this but still the fallback doesnt work…What am i doing wrong
<?php
if($image_object = get_field(‘page_image’)){
$image_output = ‘<img src=”‘ . $image_object[‘sizes’][‘banner-large’] . ‘” />’;
echo apply_filters(‘theme_banner_image’, $image_output);
}else{
$image_output = get_bloginfo(‘template_directory’) . ‘/assets/img/noimage.jpg’;
}
?>
- The topic ‘Fallback Image Doesn't Work’ is closed to new replies.