• Hi guys,

    I have a blog and I want to add navigation arrows at the end of the blog.

    For eg., after the end of the page, there should be two arrows viz. <- and ->

    When the user clicks to the left, he goes to the next page and when right, he goes to the previous.

    I searched but couldn’t find it anywhere.

    Please help, it’s urgent!!

    Regards,

    Prateek

    Website URL : http://www.noelife.com/blog1

Viewing 2 replies - 1 through 2 (of 2 total)
  • There should be page navigation after your home page fills up with posts and there are more pages to view. Right now, you only have two posts, so there’s no “next” or “previous” pages to go.

    Hi prateekmallapur,

    To add page navigation to your blog, add the following code after the <?php endwhile; ?> in the WordPress loop on your index.php page and any other pages that list more than 1 post:

    <div id="postnav_container">
    <div id="prev_entries" class="alignleft"><?php next_posts_link('Previous Entries') ?></div><!--/#prev_entries-->
    <div id="next_entries" class="alignright"><?php previous_posts_link('Next Entries') ?></div><!--/#next_entries-->
    <div class="clearfix"></div><!--/.clearfix-->
    </div><!--/#postnav_container-->

    The above code snippet adds a “Previous” link and a “Next” link, where necessary, and aligns them to the left and right respectively. The “clearfix” DIV has a CSS style of clear: both; which clears the floating DIVs above it.

    I hope this helps. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Navigation Arrows To WordPress Blog’ is closed to new replies.