Support » Fixing WordPress » Permalinks don’t work for “recent posts” section

  • after adding this to my permalinks:

    everything seems to work ok, except on the index page my “recent posts” section won’t update to use the new code, and all the links break I guess because they still have this structure:
    but when I got a perma page I wrote instead of an article, the links appear in the “recent posts” section with the correct permalink structure?

    anyone have this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • bump for the after work hours crew

    This should take care of it:

    (Other changes related to this thread).

    I get:
    Parse error: parse error, unexpected T_STRING on line <b>49</b>

    And once again I can’t duplicate it. What file is being specified in the error? Line 49 in my sidebar.php is:

    $post->post_title = sprintf(__('Post #%s'), $post->ID); ?>

    Which is straight from yours. And the whole section of the file:

    foreach ($recentposts as $post) {
    if ($post->post_title == '')
    $post->post_title = sprintf(__('Post #%s'), $post->ID); ?>
    <li><a href="<?php echo get_permalink($post->ID); ?>"><?php the_title(); ?></a></li>
    <?php } ?>

            yes, this is the line it has a problem with:
    line 49:        $post->post_title = sprintf(__(‘Post #%s’), $post->ID); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks don’t work for “recent posts” section’ is closed to new replies.