Pagination with page names (3 posts)

  1. Andreas Haukeland
    Posted 7 years ago #

    Hello! I'm wondering if it's possible to add pagination to one of my wordpress posts and then add names to the different pages? You see I'm going to make a guide with different steps and the steps have names. So I don't want wordpress to say like "Next" and "Previous" but I want it to show names of the different pages.

    Hope someone here can help me with this. Thanks :)

  2. Andreas Haukeland
    Posted 7 years ago #

    Please help me... I realy need this. Is there a plugin for this?

  3. paperduck
    Posted 7 years ago #

    hi Andreas,

    No need for a plugin, this line of code in my single.php file does it:

    <div class="navigation">
    <?php previous_post_link('«%link') ?> ::: <?php next_post_link('%link »') ?>

    The ":::" part is just my customization, you can put whatever you like there to separate your navigation links.

    For more info, I created my theme from the tutorial and files provided here:

Topic Closed

This topic has been closed to new replies.

About this Topic