Forum Replies Created

Viewing 1 replies (of 1 total)
  • The code above didn’t work for me (on version 2.8.4), sorry simon. Instead, I used this and it worked:

    <?php query_posts('category_name=articles&showposts=5'); ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    				<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
                <hr>
    
    		<?php endwhile; ?>

    The only thing I changed was using category_name=articles instead of cat=articles

Viewing 1 replies (of 1 total)