I have the following code:
<?php } else if ( is_single() ) {
if ( get_field("sf_page_image") ) {
$featured_image_ID = get_field("sf_page_image")["ID"];
} else {
$featured_image_ID = 272;
}
There is a placeholder image displaying now if there is no featured image.
I want to remove the placeholder image and show only the title if no featured image is present.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.