Category

Brand Licensing

/i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = "/images/default.jpg"; } return [$first_img,getimagesize($first_img)]; } function getBlogContentOnly(){ $content = get_the_content(); $content = apply_filters('the_content', $content); return $content; } function getFirstSentence(){ return explode('.', strip_tags(getBlogContentOnly()), 2)[0]; } ?>