Wordpress Document

Author tags

Category tags

Comment tags

Date and Time tags

General tags

Geo tags

Link tags

Links Manager tags

Permalink tags

Post tags

Trackback tags

WP/PHP General

the_content

概要

現在の投稿のコンテンツ(本文)を表示します
もし本文中に<!--more-->があれば、それよりも上の部分のみを抜粋表示します
<!--more-->の中にスペースなどを含めてはいけません。<!-- more >と書くと抜粋の区切りと判断しません

用法

<?php the_content('more_link_text', strip_teaser, 'more_file'); ?>

引数

more_link_text (string)

<!--more-->よりも後の部分を含めた全文を表示するためのリンクへのラベル(デフォルト:'(more...)' )

strip_teaser (boolean)

TRUE
more_link_textよりも前の部分を隠します(デフォルト)
FALSE
"more"よりも前の部分を表示します

more_file (string)

"more"ファイルを指定します(デフォルト:現在のファイル)Ver2.1以上

用例

-