I am using the following code (thanks again to Gene) to display posts from a specific category underneath static page content. There are a lot of posts so I have them 5 to a page with multiple pages. In order to do this there is the standard thematic index Loop to display the static page content, and a second loop to show the posts within the selected category:
<div id="content"> <?php // the action hook creating the index loop ? thematic_indexloop(); ?> <?php $wp_query = null; ?> <?php $wp_query = new WP_Query('category_name=survivorsnews&posts_per_page=5&paged='.$paged ); ?> <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"> <a href="<?php the_permalink() ?>"></a> <h3 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php thematic_postfooter(); ?> </div><!-- .post --> <?php endwhile; ?> <?php thematic_nav_below(); ?> </div><!-- #content -->
This works great and enables basic pagination so that my posts are displayed across multiple pages.
I have two questions.
1) Is it possible to disable the first thematic index Loop on all pages created by this code except page 1, where I want it as an introduction ? I imagine it is something like if $paged >1 then do not show index Loop but my php is just not up to structuring this so it actually works !
2) Secondly is there a more sophisticated form of thematic_nav_below(); which allows users to see how many pages there are in total and therefore click between them ? (so 20 posts produces 4 pages labeled page 1, page 2, page 3, page 4, as we see say in Google search results).
Any help would be greatly appreciated