Next/Previous Post Image

Community Forums Forums General Discussion Next/Previous Post Image

This topic is: not resolved

This topic contains 3 replies, has 3 voices, and was last updated by  braddalton 10 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #95911

    chad1008
    Participant

    Hey all,

    Working on some next/previous post links with thumbnails and cannot seem to get the images to display.

    I have no problem with the links themselves, but I seem to be missing something in terms of pulling the thumbnail of the adjacent post(s)

    Any insight would be appreciated!

    #96234

    Tom
    Participant

    Link to your site? Theme? Code snippets? Plugin for this?


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #96266

    braddalton
    Participant

    Use:

    genesis_get_image
    

    with code like this:

    <?php
    $prev_post = get_previous_post();
    if (!empty( $prev_post )): ?>
      <a href="&quot;&lt;?php">ID ); ?&gt;&quot;&gt;&lt;?php echo $prev_post-&gt;post_title; ?&gt;</a>
    &lt;?php endif; ?&gt;
    

    #96291

    braddalton
    Participant
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.