Missing Next & Previous Links in Posts (9 posts)

  1. juliebee
    Posted 3 years ago #

    Oh could someone please tell me how to get the next and previous links in my blog posts? I can't find it in WordPress or Pinboard. It's driving me mad. Thank you.

  2. Stephanie
    Posted 3 years ago #

    Go to the theme options page. Under the "General" tab, go look for the option that says "posts navigation labels" and select "Static Links".

  3. djfenator@gmail.com
    Posted 3 years ago #

    These solution is Ok for the pages, but not for post :/

  4. Anton
    Posted 3 years ago #

    Hi all,

    I am experiencing the same problem. Someone please advise!
    Thanks a lot in advance.

  5. Anton
    Posted 3 years ago #

    Still no one that can answer this question?

  6. jamiechong
    Posted 3 years ago #

    The best way to do this is use a Child Theme. You only need two files: style.css and comments.php.

    This way is best because it doesn't modify any of the original code used in the Pinboard theme. If you upgrade the parent theme, your previous and next post links should still work.


    Theme Name:     Pinboard Child
    Description:    Child theme for Pinboard
    Template:       pinboard
    Version:        0.1.0
    @import url("../pinboard/style.css");
    .single .entry { margin-bottom: 10px !important; }
    .prevnext_post { margin: 0 2.5% 5.1%; }
    .prevnext_post >div {
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	box-sizing: border-box;
    	width: 50%;
    .prevnext_post .prev { float: left; padding-right: 10px; }
    .prevnext_post .next { float: right; padding-left: 10px; text-align: right; }


    <div class="prevnext_post">
    	<div class="prev"><?php previous_post_link('%link','&larr; %title');  ?></div>
    	<div class="next"><?php next_post_link('%link','%title &rarr;') ?></div>
    	<div class="clear"></div>
    <?php include(get_template_directory().'/comments.php'); ?>
  7. jem259
    Posted 3 years ago #

    I just found a solution that works for me from here: http://www.onedesigns.com/support/topic/added-next-previous-links-to-single-php-2.

    But I put the code lower down than this person suggested: after the closing div tag for <div class="entry-content">.

    Here is the code that I ended up using:
    <div><?php previous_post_link('%link', '&laquo;&laquo; Previous work');?>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<?php next_post_link('%link', 'Next work &raquo;&raquo;');?></div>

    Hope this helps!

  8. oxtapus
    Posted 2 years ago #

    Great answer jamiechong! Thanks :)

  9. mren
    Posted 2 years ago #

    Would be great if it's gonna be added to the theme itself.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic