Minimum 2.0 "Next" link in portfolio posts

Community Forums Forums General Discussion Minimum 2.0 "Next" link in portfolio posts

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  braddalton 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53827

    philson
    Participant
    Post count: 2

    Does anyone know if there is a way to put a next link in individual portfolio posts? It would be nice if once a client clicked on one of the portfolio posts, they didn’t have to go back to the menu navigation to get to another portfolio entry

    http://hyper-iq.com
    #53855

    braddalton
    Participant
    Post count: 10587

    At least 2 ways to do this.

    Tested this code and it works.

    Note: This code uses the old XHTML loop hooks.

    This snippet enables you to style your single post links:
    [css]
    .previous-post-link {
    float: left;
    }

    .next-post-link {
    float: right;
    text-align: right;
    }
    [/css]

    Or you could use this:

    Note: This code uses the new Genesis 2.0 HTML 5 loop hooks

    https://gist.github.com/braddalton/6144995


    #53956

    philson
    Participant
    Post count: 2

    Brad,

    I’m confident the solutions will work…but being a bit less experienced…where do I plug in the code?

    Thanks!

    #54037

    braddalton
    Participant
    Post count: 10587

    Please copy the code from the view raw link for the second post snippet and paste it at the end of your child themes functions.php file.

    I will need to fix the first one as it doesn’t work for custom post types at the moment.


    #54176

    philson
    Participant
    Post count: 2

    Brad,

    Thanks again for getting back to me on this. I’ve pasted the code in the functions.php file. No luck. I also added some styling to the CSS with zero luck.

    Any additional guidance would be great.

    Thanks!

    #54186

    braddalton
    Participant
    Post count: 10587

    The last code snippet works because i use it on my site. But it can’t be styled because i didn’t add any class to it.

    Did you resave your permalinks?

    Also, what permalink structure are you using? Should be /%postname%/


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

You must be logged in to reply to this topic.