jeni_8686
Member
Posted 2 years ago #
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>
jeni_8686
Member
Posted 2 years ago #
The problem is solved when I remove the code for the thumbnails of recent posts (as found from http://www.cagintranet.com/archive/wordpress-tip-3-awesome-custom-field-tricks/)
Perhaps it is because I put the code in the header.php? if not, how can I modify the code to be able to still click through to links?
Thanks again
http://www.jeniwren.com
jeni_8686
Member
Posted 2 years ago #
Ok, so I changed the loop in the code and now most of the links work, without reverting directly to the most recent post.
However, now my categories don't seem to show up... I have recently changed my domain name and am wondering my permalinks might be messed up?
Thanks
jeni_8686
Member
Posted 2 years ago #