If you have set your WordPress site to display post excerpts on the front or home page, you will want visitors to click on the title or a link to encourage them to continue reading your post or article, right? WordPress makes this technique easy, and customizable.Excerpts (teasers) can be shown on WordPress through two methods:
*.The first, keeping thethe_content()template tag and inserting a quicktag calledmoreat your desired "cut-off" point when editing the post.
*.The second, by replacing the the_content()template tag with the_excerpt().
In both cases, if you have set anything in the Excerpt meta box on the post editor screen, that text will be used. Otherwise, the excerpt will be automatically trimmed.
The most commonly used method is the first one, because the user editing the post can choose between showing the whole content or just the excerpt, individually for each post. However, usingthe_excerpt()in your template file can also get a teaser from the first 55 words of the post content, without the need to place amorequicktag in the post.
To add amorequicktag in your post, put your cursor where you want to end the excerpted content of your post and click themorequicktag button. quicktagsare the little buttons found above the editing window in your Administration> Write> PostSubPanel. They includebold,italic, links, and others, and the famousmore.
It will insert a code at that point that looks like this:
and I told him that he should get moving or I'd be
on him like a limpet. He looked at me with shock on
his face and said
The rest of the post continues, but when viewed on the non-single/non-permalink web page such as archives, categories, front page, and searches, the post is shown as an excerpt to themorepoint.
Users can then continue reading more as you have enticed them with your summary introduction, by clicking on a link to the full article. Themes usually include this link in the title and the above methods will generate it by default trailing your teaser, as the example below.
and I told him that he should get moving or I'd be on him like a limpet. He looked at me with shock on his face and said more...
No comments:
Post a Comment