WordPress.org

Ready to get started?Download WordPress

Forums

Smarter Navigation
[resolved] Trying to get smarter navigation to work with thumbnails (2 posts)

  1. 12vidcom
    Member
    Posted 3 years ago #

    This is what I'm using.. what am i doing wrong? (I got no programming skills at all)

    <?php previous_post_smart(
    $format = '« %link',
    $title = '%title',
    $fallback = true,
    $in_same_cat = false,
    $excluded_categories = ''
    ); ?><?php $nextPost = get_adjacent_id_smart(true); $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(147,101) ); echo $nextthumbnail; ?>

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Just replace $nextPost->ID with $nextPost.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic