Change post content getter

This commit is contained in:
Robin Cornett
2019-06-07 10:31:27 -04:00
parent 01ce9facd2
commit 12bc62bcc0
@@ -59,8 +59,8 @@ class Display_Featured_Image_Genesis_Common {
$item->content = false;
// declare this last so that $item->backstretch is set.
if ( ! is_admin() && is_singular() ) {
$post = get_post();
$item->content = strpos( $post->post_content, 'src="' . $item->backstretch[0] );
$post_content = get_post_field( 'post_content' );
$item->content = strpos( $post_content, 'src="' . $item->backstretch[0] );
}
// $title is set by new title function