wp-utf 8-excerpt-wordpress表示要約


Main features of the plugin:
  • It supports multibyte language (such as Chinese). It will not produce gibberish as some other excerpt plugins do.
  • The html tags in the original posts, i.e., the font styles, colors, hyperlinks, pictures and such are preserved in the excerpt.
  • For better readability, it displays 300 characters for each post on the homepage and 150 characters for each post on archive pages.

  • 主な特徴:1、マルチバイト言語(例えば中国語)をサポートし、文字化けしが発生しない.2、要約は文章中のフォーマットラベル、例えばフォント、色、リンク、画像などを保持することができる(保存するラベルはバックグラウンドで設定することができる).3、トップページは文章ごとに300字を表示し、アーカイブページは文章ごとに150字を表示する(文字数は設定可能).
    Installation
  • Unzip and upload the wp-utf8-excerpt directory to the /wp-content/plugins/ directory
  • Activate the plugin through the 'Plugins' menu in WordPress
  • In your theme directory, edit the index.php file by changing
    <?php the_content(); ?>
    

  • to
        <?php
            if (is_single() or is_page()) {
                the_content();
            } else {
                the_excerpt();
            } 
        ?>
    

    インストール:1、/wp-content/plugins/ディレクトリ2に解凍し、プラグインページでプラグイン3をアクティブにし、トピックのindexを変更します.phpファイル、
        <?php the_content(); ?>
    

    に改心
        <?php
            if (is_single() or is_page()) {
                the_content();
            } else {
                the_excerpt();
            } 
        ?>
    

    注意:一部のトピックはthe_content()にはthe_content('Continue Reading»)は、このような文全体を交換します.一部のトピックではcategoryなどのアーカイブページを制御するために他のファイルが使用されています.php、archive.phpなど、必要に応じて、これらのファイルも修正してください.