Sometimes, the default settings of any blog platform or themes is to show a full text of your first ten articles whithin your blog whenever your homepage is accessed.
I Only Want EXCERPTS on my Homepage!
Ok! ok! No need to be hostile here. There are two ways you can actually put excerpts only within your homepage. I will do this very quickly because my slacking trait is kicking in.
FIRST METHOD: The MORE Tag
This is a tedious one. in order for you to have excerpts, on your editing window where you write your posts, there is an option button there called the more tag, (Alt+Shift+T). You go to a certain part of your text and whenever you feel like this upper portion only needs to be showed on my homepage, it will slice the text thus showing only the upper portion and keeping the rest and can be viewed whenever hey clicked on the title. - BORING!
SECOND METHOD: Post Excerpts Function
In all of your templates, you should have a Home.php, category.php and if you do not have those, definitely an index.php is within your template.
1. Paste the whole code temporarily on a notepad. Incase, there would be screw ups, you can paste it back in to the template you are about to edit.
2. Edit your template’s file ( home.php OR category.php OR index.php)
- look for this line
<?php the_content('Read the rest of this entry »'); ?>
- Replace it with
<?php the_excerpt(); ?>
Now your pages will now show the excerpts posts, but in order to load the post, readers will have to click on the post title, now that sucks. what you should do is to add this code under the line we just edited in step one.
<a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>" class="more-link">Read the rest of this entry »</a>
3. Hit Save!
Optional: You can customize the “read the rest of this entry” by changing the text on the given code.
That’s about it. Back to my regular slacking moves. If you have questions or simple “thanks” remarks, do not hesitate to leave a comment below. C’mon, it is not like I am asking for a paypal donation