'Next' and 'Previous' tabs in a post

Discussion in 'GoldenEagle WordPress Theme' started by miss_kms, Apr 14, 2013.

Thread Status:
Not open for further replies.
  1. miss_kms

    miss_kms New Member

    Joined:
    Jan 4, 2013
    Messages:
    7
    Likes Received:
    0
    Hi,
    I really love this theme and I use it for my blog instead of the full page (at the moment anyway).

    I'm hoping you can help me, when you click 'read more' on a post, I'd really like to have a 'next' and 'previous' button so readers can easily move back and forward between posts instead of having to go back to the main posts page every time. Is it possible to do this?

    It does it on the main page, so I'd love if there is a way that I can incorporate this into the single post pages. I've tried copying and pasting the code from the main blog page and I've also installed a widget called 'PageNavi' with no luck.

    Thanks in advance for your help!
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For this
    Go to
    Appearance > Editor / single.php
    and add code given below as shown in image.

    Code:
    <nav id="nav-single"> <span class="nav-previous">
                                <?php previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous Post ', 'goldeneagle')); ?>
                            </span> <span class="nav-next">
                                <?php next_post_link('%link', __('Next Post <span class="meta-nav">&rarr;</span>', 'goldeneagle')); ?>
                            </span> </nav>    

    [​IMG]


    It will work.
     
  3. miss_kms

    miss_kms New Member

    Joined:
    Jan 4, 2013
    Messages:
    7
    Likes Received:
    0
    Brilliant! Thanks so much!
     
Thread Status:
Not open for further replies.

Share This Page