Hi there,
so this should get you started:
add_filter( 'generate_single_featured_image_html', 'featured_image_custom_columns',25,1 );
function featured_image_custom_columns($image_html) {
// Get the Custom Field
$your_custom_field = get_post_meta( get_the_ID(), 'your_custom_field', true );
// If no featured image return default HTML
if( $image_html == '' ) {
return $image_html;
} else {
// else return custom content
$custom_feature =
'<div class="feature-grid">
<div class="feature-item">' . $image_html . '</div>
<div class="feature-item">' . $your_custom_field . '</div>
</div>';
}
return $custom_feature;
}
Then a little CSS to create the columns:
@media (min-width: 769px) {
.feature-grid {
display: flex;
}
}