Created
June 26, 2014 17:42
-
-
Save Pross/87b066f0493ce10cd77c to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
add_filter( 'the_excerpt', 'maybe_get_the_content' ); | |
function maybe_get_the_content( $content ) { | |
global $wp_query; | |
if( $wp_query->is_home ) | |
return get_the_content(); | |
else | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment