Interesting Issue (not sure it’s an error)
-
Hi !
I was looking for a way to have a few posts on the front page with the Title, a blurb, then a read more, and then after those 3 or 4 posts a list of posts that are just the titles of previous posts (which are links to the post itself). I searched through the forums here and found a great suggestion that worked like a champ. However, after I placed it in there and finished smiling at myself, I noticed that all of the archived posts and selected categories no longer show the short excerpts, but the entire post in order with a ‘next page’ link at the bottom. I would rather it was the old way. Any suggestions ? Below is the code that I placed into the loop along with the entire rest of the loop.
<?php query_posts('posts_per_page=4'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />','<span class="editlink">','</span>'); ?></h2><p><?php the_content('Read the rest of this entry »'); ?></p>
<div class="small box">
Region: <?php the_category(', ') ?> | <span class="commentslink"><?php comments_popup_link('Comment', '1 Comment', '% Comments'); ?> | <?php if(function_exists('the_views')) { the_views('Views'); } ?> | <?php if(function_exists('wp_email')) { email_link('Share'); } ?> | <?php if(function_exists('wp_print')) { print_link('Print'); } ?>
</span></div><br/>
<!--
<?php trackback_rdf(); ?>
-->
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php endif; ?>and here is the site for reference….
- The topic ‘Interesting Issue (not sure it’s an error)’ is closed to new replies.