Hi, I want to display the first 10 posts with a certain layout (e.g. full width) and then after than display the next 8 as excerpts, half-width floated boxes. what is the best way to do this?
is it a case of changing the index loop as below?
thanks in advance, andy
function remove_index_loop() {
remove_action('thematic_indexloop', 'thematic_index_loop');
}
add_action('init', 'remove_index_loop');
function my_index_loop() {
global $options, $blog_id;
foreach ($options as $value) {
if (get_option( $value['id'] ) === FALSE) {
$$value['id'] = $value['std'];
} else {
if (THEMATIC_MB)
{
$$value['id'] = get_option($blog_id, $value['id'] );
}
else
{
$$value['id'] = get_option( $value['id'] );
}
}
}
/* Count the number of posts so we can insert a widgetized area */ $count = 1;
while ( have_posts() ) : the_post();
thematic_abovepost(); ?>
<div id="post-<?php the_ID();
echo '" ';
if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
post_class();
echo '>';
} else {
echo 'class="';
thematic_post_class();
echo '">';
}
thematic_postheader(); ?>
<div class="entry-content">
<?php thematic_content(); ?>
<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>
</div><!-- .entry-content -->
<?php thematic_postfooter(); ?>
</div><!-- #post -->
<?php
thematic_belowpost();
comments_template();
if ($count==$thm_insert_position) {
get_sidebar('index-insert');
}
$count = $count + 1;
endwhile;
}
add_action('thematic_indexloop', 'my_index_loop');