How do I make excerpts for my blog posts? (Using the {more} tag)
Blog posts can be split by typing {more} in the post body wherever you want to split the text. In your templates, you can use the template tag post_excerpt() to show the excerpt (the text before the {more} tag). The template tag post_text() will show the full text (excerpt included).
The system will also insert an anchor tag into the text where the {more} tag is, so that direct links can be made to the main body of the post. The HTML looks like this:
<a name="more"></a>
The post_link() template tag will link automatically to the more anchor unless you specify otherwise. You can prevent this behaviour like this:
<?php echo post_link(false); ?>
-
FAQ
- What is the Page Type and how do I use it?
- How do I make blog pagination work?
- How can I make next/previous buttons to navigate my projects?
- How do I include Vimeo, YouTube, SoundCloud etc in my projects, pages, blog posts?
- How do I make excerpts for my blog posts? (Using the {more} tag)
- View all (2 more)
-
General Documentation
-
Themes
-
Code Documentation