Tagged: blog summary
November 6, 2012 at 1:21 pm #17595
I have used Eunoia template builder to setup the home page and want to have the blog showing 3 most recent posts but only in summary format not the full post. The options don’t allow me to do this. What is the solution? Please help!November 6, 2012 at 1:48 pm #96042
You’ll need to use the more tag to tell wordpress and the theme where to cut off the individual blog post. You can find the More Tag button in the first row of the visual editor toolbar or by pressing Alt+Shift+T .
DevinNovember 6, 2012 at 2:41 pm #96043November 6, 2012 at 3:10 pm #96044November 6, 2012 at 4:53 pm #96045
Ok one more quick question on this…
If I want to craft my own excerpts rather than using the More Tag…does Eunoia use the excerpt field?
JayNovember 6, 2012 at 6:19 pm #96046
No it doesn’t by default but you can change the file to do that if you’d like. You’ll need to open includes>loop-index.php and search for:
$current_post['content'] = get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow">
replace it with:
$current_post['content'] = get_the_excerpt(__('Read more','avia_framework').'<span class="more-link-arrow">
and save the file back on the server. Now the blog overview page will use the excerpt instead.
DevinNovember 7, 2012 at 9:34 am #96047
Hi Devin – that’s excellent and exactly what I was looking for…is there anyway of forcing a “Read More” tag in those excerpts at all? No biggie if not.November 7, 2012 at 11:43 am #96048November 7, 2012 at 12:46 pm #96049
Afaik the get_the_excerpt function won’t add a read more link automatically. You can try following code though:
$current_post['content'] = get_the_content();
$current_post['content'] = get_the_excerpt();
$current_post['content'] .= '<a href="'. get_permalink() .'" rel="bookmark" title="' . __('Permanent Link:','avia_framework').' '. get_the_title() .'"><span class="more-link-arrow">Read more</span></a>';November 7, 2012 at 1:49 pm #96050
That kinda does what I’m looking for but the link doesn’t show the full post content, only the excerpt.
HmmmNovember 7, 2012 at 2:00 pm #96051
Sorry better English is probably required…
The code at the top of this page grabs the excerpt text – which is exactly what I want, for the front page of a blog or category listing.
Your latest code adds the Read More text to the end of that – which is also great!
when I hit the read more link it only shows the excerpt text not the whole post.November 8, 2012 at 6:29 am #96052November 8, 2012 at 9:36 pm #96053
That’s really great! Thanks for helping out guys!
Love the theme and love Kriesi.at
JayNovember 9, 2012 at 1:05 am #96054
The topic ‘Show Blog summary on Home page’ is closed to new replies.