Missing og:image on post with thumbnail
-
I’m having a problem with og:image only filled up if image in the post content HTML, if not, default image is used even if the post has thumbnail.
I’ve tried with all other plugins deactivated and a default theme and the problem persists.
I’ve even tried this filter:
add_filter( 'jetpack_images_get_images', 'jetpack_custom_image', 10, 3 ); function jetpack_custom_image( $media, $post_id, $args ) { if ( has_post_thumbnail( $post_id ) ) { var_dump($media); } return $media; }And it prints
array(0){}, sohas_post_thumbnail( $post_id )returns true.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Missing og:image on post with thumbnail’ is closed to new replies.