Forums

clicking on permalinks only leads to latest post? (5 posts)

  1. 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); ?>

  2. " title="<?php the_title(); ?>">
    <img src="<?php echo $thumbnail; ?>" alt="<?php the_title(); ?>" />
    <span><?php the_title(); ?></span>
  3. <?php endwhile; endif; ?>
                </div></xmp>

  4. 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

  5. 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

  6. jeni_8686
    Member
    Posted 2 years ago #


  7. esmi
    Theme Diva & Mod
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic