ずばり。 @@ -107,7 +107,7 @@ function wpogp_image_url() { global $post; - $image = get_the_post_thumbnail_src(get_the_post_thumbnail($post->ID)); + $image = get_the_post_thumbnail_src($post->post_content); if ( empty($image) ) { return wpogp_image_url_default();} $image = get_the_post_thumbnail_src(get_the_post_thumbnail($post->ID)); を $image = get_the_post_thumbnail_src($post->post_content); に変えるだけ。