Need help? Check out our Support site, then


Why my “Recent Post Permalinks getting change in second Blog page?

  1. Hi All,

    I have a simple list of Recent Posts as permalink in the sidebar of my Blog page. They look fine in my recent Blog page, BUT when I go to second page of my blog, they get change!! By other word , these recent post permalinks are always similar with the posts on that blog page!!! How can I fix that issue? Any idea?

    Here is my Code for recent post permalink :
    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=5'.'&paged='.$paged);
    ?>
    <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

  2. " rel="bookmark"><?php the_title(); ?>
  3. <?php endwhile; ?>

  • You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic