Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7868

    Hello!

    I love this theme! But I would really like to add links in order to go from one post to another, next and previous post links.

    Which plugin or php code is needed to achieve this?

    Thank you!!

    #59519

    Hey,

    in flashlight/includes/loop-index.php find

    </div><!--end post-entry-->

    Change this to

    <?php next_post_link('%link', 'Newer', TRUE);?>
    /
    <?php previous_post_link('%link', 'Older', TRUE); ?>
    </div><!--end post-entry-->

    The above sometimes doesn’t function as you’d want it to, an other solution would be:

    <?php previous_post('&laquo; %',
    'Older', 'no'); ?> / <?php next_post('% &raquo; ',
    'Newer', 'no'); ?>
    </div><!--end post-entry-->

    This should both put a “newer” and “older” link below your blog posts before the comments.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Adding next and previous post links’ is closed to new replies.