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

  1. 12vidcom
    Posted 5 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
    Plugin Author

    Posted 5 years ago #

    Just replace $nextPost->ID with $nextPost.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Smarter Navigation
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic