-
-
Save tenman/365546 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
/** | |
* wordPress3.0beta | |
* | |
* the_excerpt で プラグインが動作していない? | |
* | |
*/ | |
標準のままだと、プラグインが効かない | |
<div class="entry-summary"> | |
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | |
</div><!-- .entry-summary --> | |
これだといい | |
<div class="entry-summary"> | |
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | |
</div><!-- .entry-summary --> | |
plugin は、以下のようになっている | |
add_filter('the_content','apply_text2html'); | |
add_filter('the_excerpt','apply_text2html'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment