WordPress.org

Ready to get started?Download WordPress

Forums

All posts link to latest (6 posts)

  1. mlindop
    Member
    Posted 7 years ago #

    Something went horribly wrong during a database upgrade, and now all posts over at my blog link now link to the latest topic from the index page: http://www.mindimp.co.uk/

    Anyone any ideas at all? It's driving me mad!

  2. arbius
    Member
    Posted 7 years ago #

    This code can be a problem.
    Do you have it in your sidebar?


    <h2><?php _e('10 Latest'); ?></h2>

    <ul>
    <?php
    $posts = get_posts('numberposts=10');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>

    <li><a>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>

  3. mlindop
    Member
    Posted 7 years ago #

    Yes I do, I've pasted what I've got below. What can I use instead?
    <h2>Recently:</h2>

      <?php
      $posts = get_posts('numberposts=4');
      foreach($posts as $post) :
      ?>

    • "><?php the_title(); ?>
    • <?php endforeach; ?>

  4. arbius
    Member
    Posted 7 years ago #

    I had the same problem.
    Im not good in codeing, so i just deleted it.

    Maybe someone else can help you.

    Good Luck!

  5. mlindop
    Member
    Posted 7 years ago #

    Thanks arbius.

    Anyone any idea on this?!

  6. mlindop
    Member
    Posted 7 years ago #

    Sorted it in the end by installing a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic