• 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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Go to the theme options page. Under the “General” tab, go look for the option that says “posts navigation labels” and select “Static Links”.

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

    Anton

    (@doordebenen)

    Hi all,

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

    Anton

    (@doordebenen)

    Still no one that can answer this question?

    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.

    style.css:

    /*
    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; }

    comments.php:

    <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>
    </div>
    <?php include(get_template_directory().'/comments.php'); ?>

    I just found a solution that works for me from here: https://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!

    Great answer jamiechong! Thanks ??

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing Next & Previous Links in Posts’ is closed to new replies.