• I added the post thumbnail to the plugin, only the “Top” version which is what I needed. Here is the code if you are interested in adding this as a feature.

    in load_settings:
    
    $pre_post_thumb = $pre_post->ID!=""?get_the_post_thumbnail($pre_post->ID, array(50,50)):'';
    $next_post_thumb = $next_post->ID!=""?get_the_post_thumbnail($next_post->ID, array(50,50)):'';
    
    $this->config["preThumb"] = $pre_post_thumb;
    $this->config["nextThumb"] = $next_post_thumb;
    
     in WP_Pre_Next_Navigation:
    
     case "top":
    	return '<div class="wp-post-navigation">
    	<div class="wp-post-navigation-pre'.$this->config["hasImage"].'">
    	'.'<span style="float:left;padding-right:5px">'.$this->config["preThumb"].'</span>'.$this->config["prePost"].'
    	</div>
    	<div class="wp-post-navigation-next'.$this->config["hasImage"].'">
    	'.'<span style="float:right;padding-left:5px">'.$this->config["nextThumb"].'</span>'.$this->config["nextPost"].'
    	</div>
    	</div>'.$content;
    break;

    https://www.ads-software.com/plugins/wp-post-navigation/

  • The topic ‘Added post thumbnail to the links’ is closed to new replies.