PHP Code SnippetAfter installing a child theme, navigate to Appearance > Theme Editor > functions.php and paste at the bottom of the input.
Instructions
SEOPRESS PLUGIN ONLY
function sp_social_og_thumb_dynamic_multiple_ids($html) { if (is_single()) { global $post; $image_id = get_post_meta($post->ID, 'cover', true); // Retrieve the 'cover' field, assuming it returns a single image ID
if (!empty($image_id)) { $first_image_url = wp_get_attachment_url($image_id); // Get the full URL of the image