Skip to content

Instantly share code, notes, and snippets.

@tenman
Created April 14, 2010 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenman/365546 to your computer and use it in GitHub Desktop.
Save tenman/365546 to your computer and use it in GitHub Desktop.
/**
* wordPress3.0beta
*
* the_excerpt で プラグインが動作していない?
*
*/
標準のままだと、プラグインが効かない
<div class="entry-summary">
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
</div><!-- .entry-summary -->
これだといい
<div class="entry-summary">
<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</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