Last active
September 1, 2016 13:14
-
-
Save JKirchartz/a89f403e9399577e294c2f8d5013a3da to your computer and use it in GitHub Desktop.
Wordpress Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$excerpt = $post_object->post_excerpt; | |
if ( $excerpt == '' ) { | |
$content_arr = get_extended( $post_object->post_content ); | |
$excerpt = $content_arr['main']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment