Another Test Post
No Comments
Written by admin on April 4, 2008 – 11:04 am
Displays the contents of the current post. This tag must be within The_Loop.
If the quicktag <!–more–> is used in a post to designate the “cut-off” point for the post to be excerpted, the_content() tag will only show the excerpt up to the <!–more–> quicktag point on non-single/non-permalink post pages. By design, the_content() tag includes a parameter for formatting the <!–more–> content and look, which creates a link to “continue reading” the full post.
Note:
- No whitespaces are allowed before the “more” in the <!–more–> quicktag. In other words <!– more –> will not work!
- The <!–more–> quicktag will not operate and is ignored if there is only one post being displayed.
Usage
<?php the_content(‘more_link_text’, strip_teaser, ‘more_file’); ?>
Examples
Designating the “More” Text
Displays the content of the post and uses “Read more…” for the more link text when the <!–more–> Quicktag is used.
<?php the_content('Read more...'); ?>
Displays the contents of the current post. This tag must be within The_Loop.
If the quicktag <!–more–> is used in a post to designate the “cut-off” point for the post to be excerpted, the_content() tag will only show the excerpt up to the <!–more–> quicktag point on non-single/non-permalink post pages. By design, the_content() tag includes a parameter for formatting the <!–more–> content and look, which creates a link to “continue reading” the full post.
Note:
- No whitespaces are allowed before the “more” in the <!–more–> quicktag. In other words <!– more –> will not work!
- The <!–more–> quicktag will not operate and is ignored if there is only one post being displayed.
Usage
<?php the_content(‘more_link_text’, strip_teaser, ‘more_file’); ?>
Examples
Designating the “More” Text
Displays the content of the post and uses “Read more…” for the more link text when the <!–more–> Quicktag is used.
<?php the_content(’Read more…’); ?>
