Contextual Related Posts - Version 1.5.2

Version Description

  • Fixed: Fixed display of post thumbnails using postmeta field
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Contextual Related Posts
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

Files changed (2) hide show
  1. contextual-related-posts.php +2 -2
  2. readme.txt +3 -0
contextual-related-posts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Contextual Related Posts
4
- Version: 1.5.1
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
6
  Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
7
  Author: Ajay D'Souza
@@ -84,7 +84,7 @@ function ald_crp() {
84
  if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail($search->ID))) {
85
  $output .= get_the_post_thumbnail( $search->ID, array($crp_settings[thumb_width],$crp_settings[thumb_height]), array('title' => $title,'alt' => $title));
86
  } else {
87
- $postimage = get_post_meta($search->ID, 'post-image', true);
88
  if ($postimage) {
89
  $output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" width="'.$crp_settings[thumb_width].'" height="'.$crp_settings[thumb_height].'" />';
90
  } else {
1
  <?php
2
  /*
3
  Plugin Name: Contextual Related Posts
4
+ Version: 1.5.2
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
6
  Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
7
  Author: Ajay D'Souza
84
  if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail($search->ID))) {
85
  $output .= get_the_post_thumbnail( $search->ID, array($crp_settings[thumb_width],$crp_settings[thumb_height]), array('title' => $title,'alt' => $title));
86
  } else {
87
+ $postimage = get_post_meta($search->ID, $crp_settings[thumb_meta], true);
88
  if ($postimage) {
89
  $output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" width="'.$crp_settings[thumb_width].'" height="'.$crp_settings[thumb_height].'" />';
90
  } else {
readme.txt CHANGED
@@ -31,6 +31,9 @@ Now, you can choose to exclude posts from certain categories as well as exclude
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 1.5.1 =
35
  * Fixed: Numeric options were not being saved correctly
36
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.5.2 =
35
+ * Fixed: Fixed display of post thumbnails using postmeta field
36
+
37
  = 1.5.1 =
38
  * Fixed: Numeric options were not being saved correctly
39