Support » Fixing WordPress » All posts link to latest

Viewing 5 replies - 1 through 5 (of 5 total)
  • This code can be a problem.
    Do you have it in your sidebar?

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

    $posts = get_posts('numberposts=10');
    foreach($posts as $post) :

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

    Yes I do, I’ve pasted what I’ve got below. What can I use instead?

      $posts = get_posts(‘numberposts=4’);
      foreach($posts as $post) :

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

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

    Maybe someone else can help you.

    Good Luck!

    Thanks arbius.

    Anyone any idea on this?!

    Sorted it in the end by installing a plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All posts link to latest’ is closed to new replies.