June 5, 2012 at 6:59 pm #13047
Hope everything is going great with you. Our blog overview page is showing full post instead of a few sentence excerpts. I have tried playign around in many things and am having no luck getting normal sizes blog excerpts for the blog main page so our visitors can see multiple post to choose from.
Here is the url to the blog overview page. http://www.trinitydigitalmarketing.com/our-blog
We would like to know how to get just a few sentences excerpts of the post like default configurations.
Thank You for Your Time,
WesJune 6, 2012 at 3:07 am #77593
Please go to includes folder and look for loop-index.php. Find this line.
<?php the_content('<span class="inner_more">'.__('Read more','avia_framework').'</span>'); ?>
then replace it with
<?php the_excerpt('<span class="inner_more">'.__('Read more','avia_framework').'</span>'); ?>
IsmaelJune 6, 2012 at 3:34 pm #77594
That did work on making the excerpt show. But now the post itself, once you click on the excerpt. the post is shortened as an excerpt as well. so the entire post cannot be view once on the individual post page.
You can view it here,
Thank You For Your Time,
WesJune 7, 2012 at 11:50 am #77595
Please revert the changes you have to make on loop-index.php. Do this instead.
Please edit your template-blog.php. Look for this code.
get_template_part( 'includes/loop', 'index' );
Replace it with
get_template_part( 'includes/loop', 'blog' );
On your includes folder make a duplicate of loop-index.php then rename it loop-blog.php.
Please edit loop-blog.php using the first instruction that I gave you.
I hope it works.
IsmaelJune 7, 2012 at 1:20 pm #77596
I implemented all of the changes that you said and it is still showing the full article where there is supposed to be an excerpt. You can take a look at it http://www.trinitydigitalmarketing.com.
Thank You For Your Time Ismael,
WesJune 9, 2012 at 2:57 am #77597
If that doesn’t work please try this.
Take a look at the last instruction with the code.
IsmaelJune 10, 2012 at 1:05 am #77598June 11, 2012 at 5:23 am #77599
The topic ‘Cant Shorten Blog Excerpts’ is closed to new replies.