clicking on permalinks only leads to latest post?
-
I have just been doing some work on making a thumbnail bar of recent posts,but in the process i can now not seem to see ANY link I click onto. Instead, ONLY the most recent post comes up.
By the way, I added this code to the header.php (after </head> tag!):
<xmp>
<div id=”recentposts”><ul class=”thumb_recent”> <h1>Recent Posts:</h1>
<?php query_posts(‘showposts=5’); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $thumbnail = get_post_meta($post->ID, ‘post_thumbnail’, true); ?>-
” title=”<?php the_title(); ?>”>
<img src=”<?php echo $thumbnail; ?>” alt=”<?php the_title(); ?>” />
<span><?php the_title(); ?></span>
<?php endwhile; endif; ?>
</div></xmp> -
” title=”<?php the_title(); ?>”>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘clicking on permalinks only leads to latest post?’ is closed to new replies.