Hi,
I am using below to output the excerpt for 2nd and 3rd items on first page. I want to include the post thumbnail in the excerpt and output some html tags around the exceprt like <div class="excerpt"> and include a title and a little bit of the post text. Would it be better to output a modified content tag and how would I filter the content returned?
thanks
andy
function front_page_content($content) {
// We need some global data. $thematic_post_alt is the post number on a page.
// $paged is the page number
global $thematic_post_alt, $paged;
// Check if we are on the Front page or on our Blog page. You might want to
// change this first check according to your installation.
if (is_home() || is_front_page()) {
// Check if we are on the first page and if it is the first
// post on this page
if (($paged < 2) && ( ($thematic_post_alt-1) == 1 )) {
// The first post on the first page will be full content
$content = 'full';
} else {
// Everything else will be excerpt
$content= 'excerpt';
}
}
// Return the controll to the thematic_content filter hook
return $content;
}
// Hook our function into thematic content
add_filter('thematic_content', 'front_page_content');