How to Write a Post
By Solostream on Apr 01, 2009 with Comments 0
Don’t let the title of this post fool you … I’m not meaning to insult your intelligence when I imply that your DON’T know how to write a post with WordPress (I’m sure you do). It’s just that there are a few features built into WP-Chatter, and it’s worthwhile to tell you how to get the most out of it.
If you look at the home page of this demo site, you’ll see that all the posts – including the featured posts at the top – display a post introduction (or excerpt) rather than the full post itself. It’s the same on the category pages, archive pages and search results pages. Then, when you click through to the individual post, you get the full post content along with comments and other information.
There are 2 possible methods to create the post introduction or excerpt …
Set WP-Chatter to Use Post Excerpts, and Use the Excerpt Field
Go to your Theme Settings page, and click “Basic Post Settings.” You’ll see an option to use the Post Excerpts or Post Content (default value is Excerpts). You’ll want to leave it set to Post Excerpts.
Now that the theme is set up for excerpts, the trick is to tell WordPress how to create the excerpt the way you want it rather than it’s own way. Without any other instructions, WordPress will create the excerpt on it’s own. Here’s what it does …
WordPress Codex: “If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), it will display a teaser which refers to the first 55 words of the post’s content. Also in the latter case, HTML tags and graphics are stripped from the excerpt’s content.”
So the solution is simple … Use the Excerpt field on the Write Post screen.
Whatever you place in the Excerpt field is what will be displayed as the post excerpt on your home page. And keep in mind, you will need to add some HTML to the Excerpt field if you want it to be used in the excerpt. Otherwise, WordPress strips out all code including HTML. For example, lets say you want your post excerpt to be displayed just like this:
This is the post introduction. I want to include a link to this site, and this site.
In that case, here’s exactly what you’d need to place in the Excerpt field:
This is the post introduction. I want to include a link to this site, and this site.
If you need some help with the HTML code, you can write your excerpt in the normal post editor, then click the HTML view tab, and simply copy the HTML code from there.
As a side note, some folks have inquired whether they can include video in there post excerpt. The answer is yes, you can … you just need to place the code for the video in the Excerpt field.
That’s all for this option. Lets move on to the second method you can use to create your post introduction/excerpt.
Set WP-Chatter to Use Post Content, and Use the More Tag
With this method, all you have to do is set WP-Chatter to use Content rather than Excerpts. Then, when you write your post, simply use the More tag to cut the post according to your preference. The benefit of using this method over the previous one is simplicity. You don’t have to remember to use the Excerpt field, and any HTML code will still show up in your post introduction/excerpt.
Note: If you use the Post Content option, you need to make sure you DO NOT place any images before the More tag … or else you may end up with double thumbnail images on your home page.
Filed Under: A-Tutorials
About the Author: This is the Biographical Info field in the WordPress user profile. You should write something here. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi quis risus at nisl blandit feugiat. Ut vel orci quis sem dapibus iaculis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.