Version Description
- Fixed: Undefined constants PHP errors
Download this release
Release Info
Developer | Ajay |
Plugin | Contextual Related Posts |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- contextual-related-posts.php +24 -24
- readme.txt +4 -1
- update-info.txt +1 -3
contextual-related-posts.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Contextual Related Posts
|
4 |
-
Version: 1.6.
|
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
|
@@ -170,29 +170,29 @@ function crp_default_options() {
|
|
170 |
$thumb_default = $crp_url.'/default.png';
|
171 |
|
172 |
$crp_settings = Array (
|
173 |
-
title => $title, // Add before the content
|
174 |
-
add_to_content => true, // Add related posts to content (only on single posts)
|
175 |
-
add_to_page => false, // Add related posts to content (only on single pages)
|
176 |
-
add_to_feed => true, // Add related posts to feed
|
177 |
-
limit => '5', // How many posts to display?
|
178 |
-
show_credit => false, // Link to this plugin's page?
|
179 |
-
match_content => true, // Match against post content as well as title
|
180 |
-
exclude_pages => true, // Exclude Pages
|
181 |
-
blank_output => true, // Blank output?
|
182 |
-
exclude_categories => '', // Exclude these categories
|
183 |
-
exclude_cat_slugs => '', // Exclude these categories (slugs)
|
184 |
-
before_list => '<ul>', // Before the entire list
|
185 |
-
after_list => '</ul>', // After the entire list
|
186 |
-
before_list_item => '<li>', // Before each list item
|
187 |
-
after_list_item => '</li>', // After each list item
|
188 |
-
post_thumb_op => 'text_only', // Display only text in posts
|
189 |
-
thumb_height => '50', // Height of thumbnails
|
190 |
-
thumb_width => '50', // Width of thumbnails
|
191 |
-
thumb_meta => 'post-image', // Meta field that is used to store the location of default thumbnail image
|
192 |
-
thumb_default => $thumb_default, // Default thumbnail image
|
193 |
-
scan_images => false, // Scan post for images
|
194 |
-
show_excerpt => false, // Show description in list item
|
195 |
-
excerpt_length => '10', // Length of characters
|
196 |
);
|
197 |
return $crp_settings;
|
198 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Contextual Related Posts
|
4 |
+
Version: 1.6.4
|
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
|
170 |
$thumb_default = $crp_url.'/default.png';
|
171 |
|
172 |
$crp_settings = Array (
|
173 |
+
'title' => $title, // Add before the content
|
174 |
+
'add_to_content' => true, // Add related posts to content (only on single posts)
|
175 |
+
'add_to_page' => false, // Add related posts to content (only on single pages)
|
176 |
+
'add_to_feed' => true, // Add related posts to feed
|
177 |
+
'limit' => '5', // How many posts to display?
|
178 |
+
'show_credit' => false, // Link to this plugin's page?
|
179 |
+
'match_content' => true, // Match against post content as well as title
|
180 |
+
'exclude_pages' => true, // Exclude Pages
|
181 |
+
'blank_output' => true, // Blank output?
|
182 |
+
'exclude_categories' => '', // Exclude these categories
|
183 |
+
'exclude_cat_slugs' => '', // Exclude these categories (slugs)
|
184 |
+
'before_list' => '<ul>', // Before the entire list
|
185 |
+
'after_list' => '</ul>', // After the entire list
|
186 |
+
'before_list_item' => '<li>', // Before each list item
|
187 |
+
'after_list_item' => '</li>', // After each list item
|
188 |
+
'post_thumb_op' => 'text_only', // Display only text in posts
|
189 |
+
'thumb_height' => '50', // Height of thumbnails
|
190 |
+
'thumb_width' => '50', // Width of thumbnails
|
191 |
+
'thumb_meta' => 'post-image', // Meta field that is used to store the location of default thumbnail image
|
192 |
+
'thumb_default' => $thumb_default, // Default thumbnail image
|
193 |
+
'scan_images' => false, // Scan post for images
|
194 |
+
'show_excerpt' => false, // Show description in list item
|
195 |
+
'excerpt_length' => '10', // Length of characters
|
196 |
);
|
197 |
return $crp_settings;
|
198 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: Ajay, Mark Ghosh
|
|
4 |
Donate link: http://ajaydsouza.com/donate/
|
5 |
Stable tag: trunk
|
6 |
Requires at least: 2.5
|
7 |
-
Tested up to:
|
8 |
|
9 |
|
10 |
Show user defined number of contextually related posts
|
@@ -32,6 +32,9 @@ Now, you can choose to exclude posts from certain categories as well as exclude
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
35 |
= 1.6.3 =
|
36 |
* Fixed: The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|
37 |
|
4 |
Donate link: http://ajaydsouza.com/donate/
|
5 |
Stable tag: trunk
|
6 |
Requires at least: 2.5
|
7 |
+
Tested up to: 3.3
|
8 |
|
9 |
|
10 |
Show user defined number of contextually related posts
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 1.6.4 =
|
36 |
+
* Fixed: Undefined constants PHP errors
|
37 |
+
|
38 |
= 1.6.3 =
|
39 |
* Fixed: The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|
40 |
|
update-info.txt
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
*
|
2 |
-
* Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail.<br />
|
3 |
-
* The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|
1 |
+
* Fixed: Undefined constants PHP errors
|
|
|
|