WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
Missing Next & Previous Links in Posts (9 posts)

  1. juliebee
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  4. Anton
    Member
    Posted 1 year ago #

    Hi all,

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

  5. Anton
    Member
    Posted 1 year ago #

    Still no one that can answer this question?

  6. jamiechong
    Member
    Posted 1 year 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.

    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'); ?>
  7. jem259
    Member
    Posted 1 year 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
    Member
    Posted 12 months ago #

    Great answer jamiechong! Thanks :)

  9. mren
    Member
    Posted 11 months 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