Michael, I made the change and it work. I have the problem now that this templage (That-Music) doesn’t show the “Next Page” link at the bottom of the pages. So if I choose to display 10 posts on the home page and I have made 20, 10 of them cannot be seen.
Can you help me out? Please note that I don’t write PHP code ?? I can’t figure this out myself, sorry…
Thanks so much,
Dave
My index page:
<?php get_header(); ?><div id=”left” class=”grid_9 omega alpha”><div id=”content”> <?php if ( $paged < 2 ) { // Do stuff specific to first page ?> <?php $my_query = new WP_Query(‘showposts=1’);while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> <div class=”entry”> <h2 class=”sectionhead”>Latest Entry</h2> <div class=”post” id=”post-<?php the_ID(); ?>”> <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”> <?php the_title(); ?> </h2> <p class=”postinfo”> <?php the_time(‘M j, Y’) ?> <?php the_category(‘, ‘) ?> <?php comments_popup_link(‘Leave a comment’, ‘1 Comment’, ‘% Comments’); ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
Posted by <?php the_author(); ?> </p> <?php the_content(‘Read More..‘); ?> </div> </div> <?php endwhile; ?> <div class=”entry”> <h2 class=”sectionhead”>Recent Entries</h2> <?php if (have_posts()) : while (have_posts()) : the_post();if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?> <div class=”post” id=”post-<?php the_ID(); ?>”> <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”> <?php the_title(); ?> </h2> <p class=”postinfo”> <?php the_time(‘M j, Y’) ?> <?php the_category(‘, ‘) ?> <?php comments_popup_link(‘Leave a comment’, ‘1 Comment’, ‘% Comments’); ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
Posted by <?php the_author(); ?> </p> <?php the_content(); ?> </div> <?php endwhile; endif; ?> </div> <div class=”entry”> <?php } else { // Do stuff specific to non-first page ?> <div class=”entry”> <h2 class=”sectionhead”>Recent Articles</h2> <?php if (have_posts()) : while (have_posts()) : the_post();if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?> <div class=”post” id=”post-<?php the_ID(); ?>”> <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”> <?php the_title(); ?> </h2> <p class=”postinfo”> <?php the_time(‘M j, Y’) ?> <?php the_category(‘, ‘) ?> <?php comments_popup_link(‘Leave a comment’, ‘1 Comment’, ‘% Comments’); ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
Posted by <?php the_author(); ?></p> <?php the_content(‘Read More..‘); ?> </div> <?php endwhile; endif; ?> <div class=”next_nav”> <div class=”alignleft”> <?php next_posts_link(‘« Older Entries’) ?> </div> <div class=”alignright”> <?php previous_posts_link(‘Newer Entries »’) ?> </div> </div> <?php } ?> </div> <div class=”clear”></div> </div></div><?php get_sidebar(); ?><br clear=”all” /></div><?php get_footer(); ?>