-
-
Save tenman/5fbb1a620a6b958a1032 to your computer and use it in GitHub Desktop.
excerpt2content
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', 'function_name' ); | |
function function_name( $return_value ) { | |
$content = get_the_content( '続きを読む' ); | |
$content = apply_filters( 'the_content', $content ); | |
$content = str_replace( ']]>', ']]>', $content ); | |
return $content; | |
} | |
//ここまで追加 | |
/* ------------------------------------------------------------------------- * | |
* Custom functions | |
/* ------------------------------------------------------------------------- */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment