Forums

[resolved] Adding previous/next post links (4 posts)

  1. foodrepublik
    Member
    Posted 2 years ago #

    Hi,
    I am new to wordpress and html in general. I am using the Azul theme for my web page and would like to add "previous\next page links" to my pages when a single page is viewed. I have seen this on other wordpress blogs. I tried copying some code from another theme, but the formating is all off. Can some one help me to add this to the Azul theme?
    Thanks!

  2. Samuel B
    moderator
    Posted 2 years ago #

  3. foodrepublik
    Member
    Posted 2 years ago #

    Thanks for replying. I tried pasteing the code:

    <div class="navigation">
    <div class="alignleft">
    <?php previous_post('&laquo; &laquo; %',
     'Toward The Past: ', 'yes'); ?>
    </div>
    <div class="alignright">
    <?php next_post('% &raquo; &raquo; ',
     'Toward The Future: ', 'yes'); ?>
    </div>
    </div> <!-- end navigation -->

    into the "single.php"

    Unfortunately it creates problems with formating for the post title. The title gets centered between the links.

    I just want a simple previous post/next post navigation above the post title on a single post.

    I also would like it to say the title, not "next" or "previous" or "toward the future" or anything like that.
    Thanks for helping!

  4. foodrepublik
    Member
    Posted 2 years ago #

    I pasted the code from this page and it worked for me if anyone else is looking for a similar solution.

    http://blog.deconcept.com/2005/02/07/wordpress-next-previous-post-links/

Topic Closed

This topic has been closed to new replies.

About this Topic