Some themes will ignore any manual excerpts and display the full post anyway on the Blog page. Many themes will show excerpts (manual or auto-generated) on the Blog page e.g. How do themes handle excerpts?Īnnoyingly, each theme is different – and there’s no easy way to search for how a theme handles excerpts. Which method is followed depends on how your theme is coded. In the second, the text before the More tag in the post will make up a teaser. In the first instance, WordPress will make an excerpt using the first 55 words of the post. When the post template uses the the_content() template tag, WordPress will look for the More tag and create a teaser from the content that precedes the More tag. When a post has no manual excerpt and the post template uses the the_excerpt() template tag, WordPress generates an excerpt automatically by selecting the first 55 words of the post. The WordPress Codex entry for excerpt says: Automatic excerptsĪutomatic excerpts are auto-generated by WordPress. On the blog page it looks like this: The excerpt ends with the More tag The Read More button and generated tag, shown by arrows When writing a post, use the Insert Read More Tag button in the post editor. It can be turned on by checking the relevant box in Screen Options.Īnother way of controlling the summary shown is to use the More tag in WordPress. New WordPress users won’t see the Excerpt box. WordPress excerpt box with a manual excerpt added Manual excerpts are set by the post or page author in the Excerpt box under the post editor. An ellipsis follows at the end of the text, followed by a Continue Reading link. Here’s an example from my blog page: A blog post excerpt. Often there will be a link following the excerpt to read the full post. You might also see them on search results pages or archive pages. WordPress excerpts are a short summary of a post or page.Įxcerpts are commonly shown on Blog pages.
0 Comments
Leave a Reply. |