• when viewing a permalink page, at the top there are links for the post before and after the current post. well those links are very long titles and look very poor. can we replace the title links there with just previous and next post? that would be nice. thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter jackietreehorn

    (@jackietreehorn)

    still trying to make the navigation above the posts look like it does in the archive view. there you have a previous and next link top left and right. that looks much better than the long post titles at the top. thank you.

    change
    <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    into
    <div class="alignleft"><?php previous_post_link('WHAT-EVER-YOU-WANT') ?></div>

    Thread Starter jackietreehorn

    (@jackietreehorn)

    which file is that code to be changed in?

    thank you.

    Thread Starter jackietreehorn

    (@jackietreehorn)

    please. which file would this code be posted in? thank you.

    Start with the theme’s single.php, it’s at the top.

    Thread Starter jackietreehorn

    (@jackietreehorn)

    almost there!! but, by replacing with the code above, i can change the name, but the link goes away. i only want to change the name of the link to ‘previous’ and ‘next’ but have the function of the link still there. thank you.

    Thread Starter jackietreehorn

    (@jackietreehorn)

    still need help here plase. becoming urgent.

    Check the documentation for previous_post_link. Don’t forget to give it the %link along with the text you want to show.

    Thread Starter jackietreehorn

    (@jackietreehorn)

    Handy,

    Could you give me the exact code for your example? I still break it every time I try. I’ve tried many times using the previous_post_link and %link, but I can’t get it right.

    Thank you so much for your help.

    Thread Starter jackietreehorn

    (@jackietreehorn)

    still can’t get the code right with this. could really use some help on this one yet.

    thank you very much

    Does this work?

    <?php next_post_link('%link', 'Prev Post'); ?>

    I tried everything in this thread, but have yet to be able to change the the navigation names for “previous post” and “next post” for single pages. I’d like them to read “before” and “after” to match what’s on the main index. Here’s the code that works on single.php

    <?php previous_post_link(‘« %link’) ?>  
    <?php next_post_link(‘%link »’) ?>

    Any help would be much appreciated.

    Thanks,

    Brian

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘previous and next on permalink pages’ is closed to new replies.