To make your WordPress log load faster and to avoid duplicate content issue you have to limit your posts length in your WordPress ho me Vardenafil levitra page.
If you don’t limit the length of your WordPress blog posts, your blog can load very low, and you will have a duplicate issue because the posts in the home page displays the full content and this will hurt your blog ranking in the search engines.
You should only display the full content just on your blog posts, but in the home page, archives and categories archives you should only show the post title and a small part of your posts content (you should only display the excerpt of the posts) and a link to the full content.
You can limit the posts length by adding <!–more–> tag when you write the content or by installing limit post plugin or WP Limit Posts Automatically plugin, I tried to use these plugins but in many themes they didn’t worked at all!
So what I have did is to add a template tag code in my blog index.php file and I’ve added also some codes in the functions.php file to make it works.
How to limit the posts length in my WordPress home page without any plugin?
Uk levitra id=”_mcePaste”>Go to your theme folder and open index.php file (you can edit on it directly from your WP admin area).
What we will do is to search for the entry class (<div class=”entry”>) and you should the content template tag (<?php the_content(); ?>) or anything similar.
Then we will change the content template tag code which is (<?php the_content(); ?>) to the excerpt template tag code (<?php the_excerpt(); ?>).
So the excerpt template tag code <?php the_excerpt(); ?> must be under the entry class <div class=”entry”> inside the index.php of your theme.
The index.php file must be like this:
“Index.php” File screenshot:
As you can see in the screenshot above I have added the excerpt template tag code under the class entry.
Buy Cialis Super Active+ Online Pharmacy No Prescription Needed #000000;”>We didn’t finish yet! Now we have to add some PHP code inside the functions. php file of your theme. Order viagra Viagra o levitra
Go to your theme folder and open “functions.php” file (you can edit on the file directly from your WP admin area) and then follow these steps below:
First copy this:
function new_excerpt_more($post) {
return ‘<a href=”‘. get_permalink($post->ID) . ‘”>’ . ‘ Read the Rest…’ . ‘</a>’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
Then past it in the top of the functions.php file under the first <?php tag.
The (Read the Rest…) above is the anchor text of the link that will redirect you to your posts, you can change to “Read full story” or “Learn more” or anything you want.
So the functions.php must be like this:
Functions.php File screenshot:
You should add the codes like the screenshot above, under the first php tag (<?php), save the changes and check out your WordPress home page.
You should see this in your Wordpres home page:
Buy minipress online alt=”Goginoo WordPress home page test” width=”300″ height=”129″ />That’s it you are finished! If you have any questions feel free to ask me.









wieczór panieński | April 5th, 2010 at 1:23 pm #
i know this is not exactly on topic, but i have a blog using the blogengine platform as well and i’m having issues with my comments displaying. is there a setting i am forgetting? maybe you could help me out? thank you.