Version Description
= 0.18 = Template system was upgraded with new options. Backwards compatible, but you can better customize the way the post contents are displayed. Check templates/default.php.
= 0.17 = Upgrade your templates: Templates system was rewritten, so your current templates will probably not work. Check out the new default.php file on /templates to see the simpler new way to work with templates.
= 0.13.2 = Thumbnail parameter 'thumbnails' changed to 'thumbnail.
= 0.7.2 = Template system has changed. Now the posts loop must be defined inside the template. Check templates/default.php for an example.
= 0.8 = Widget built for WordPress 2.8's Widget API, so you need at least WP 2.8 to use the widget.
= 0.9 = Template system has changed. Custom templates should be stored in WordPress theme folder.
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.22.3 |
Comparing to | |
See all releases |
Code changes from version 0.22.2 to 0.22.3
- include/CatList.php +18 -7
- include/CatListDisplayer.php +4 -3
- list_cat_posts.php +1 -1
- readme.txt +6 -2
@@ -230,13 +230,24 @@ class CatList{
|
|
230 |
if ($this->params['thumbnail']=='yes'){
|
231 |
$lcp_thumbnail = '';
|
232 |
if ( has_post_thumbnail($single->ID) ) {
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
$
|
238 |
-
|
239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
}
|
241 |
return $lcp_thumbnail;
|
242 |
} else {
|
230 |
if ($this->params['thumbnail']=='yes'){
|
231 |
$lcp_thumbnail = '';
|
232 |
if ( has_post_thumbnail($single->ID) ) {
|
233 |
+
|
234 |
+
if ( in_array( $this->params['thumbnail_size'], array('thumbnail', 'medium', 'large', 'full') ) ) :
|
235 |
+
$lcp_thumb_size = $this->params['thumbnail_size'];
|
236 |
+
elseif ($this->params['thumbnail_size']):
|
237 |
+
$lcp_thumb_size = explode(",", $this->params['thumbnail_size']);
|
238 |
+
else :
|
239 |
+
$lcp_thumb_size = 'thumbnail';
|
240 |
+
endif;//thumbnail size
|
241 |
+
|
242 |
+
$lcp_thumbnail = '<a href="' . get_permalink($single->ID).'">';
|
243 |
+
|
244 |
+
$lcp_thumbnail .= get_the_post_thumbnail(
|
245 |
+
$single->ID,
|
246 |
+
$lcp_thumb_size,
|
247 |
+
($lcp_thumb_class != null) ? array('class' => $lcp_thumb_class ) : null
|
248 |
+
);
|
249 |
+
$lcp_thumbnail .= '</a>';
|
250 |
+
|
251 |
}
|
252 |
return $lcp_thumbnail;
|
253 |
} else {
|
@@ -90,15 +90,16 @@ class CatListDisplayer {
|
|
90 |
$lcp_display_output = '<'. $tag . $class . '>';
|
91 |
$lcp_display_output .= $this->get_post_title($single);
|
92 |
|
93 |
-
$lcp_display_output .= $this->get_comments($single);
|
94 |
|
95 |
-
$lcp_display_output .=
|
96 |
|
97 |
-
$lcp_display_output .= $this->get_author($single);
|
98 |
|
99 |
if (isset($this->params['customfield_display'])){
|
100 |
$lcp_display_output .= $this->get_custom_fields($this->params['customfield_display'], $single->ID);
|
101 |
}
|
|
|
102 |
$lcp_display_output .= $this->get_thumbnail($single);
|
103 |
|
104 |
$lcp_display_output .= $this->get_content($single, 'p');
|
90 |
$lcp_display_output = '<'. $tag . $class . '>';
|
91 |
$lcp_display_output .= $this->get_post_title($single);
|
92 |
|
93 |
+
$lcp_display_output .= $this->get_comments($single) . ' ';
|
94 |
|
95 |
+
$lcp_display_output .= $this->get_date($single) . ' ';
|
96 |
|
97 |
+
$lcp_display_output .= $this->get_author($single) . ' ';
|
98 |
|
99 |
if (isset($this->params['customfield_display'])){
|
100 |
$lcp_display_output .= $this->get_custom_fields($this->params['customfield_display'], $single->ID);
|
101 |
}
|
102 |
+
|
103 |
$lcp_display_output .= $this->get_thumbnail($single);
|
104 |
|
105 |
$lcp_display_output .= $this->get_content($single, 'p');
|
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
|
5 |
Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
-
Version: 0.22.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
|
5 |
Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
+
Version: 0.22.3
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
@@ -4,7 +4,7 @@ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts
|
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 0.22.
|
8 |
|
9 |
== Description ==
|
10 |
List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
|
@@ -102,7 +102,7 @@ You can use the *categorypage* parameter to make it detect the category id of th
|
|
102 |
|
103 |
* **thumbnail** - Show post thumbnail (http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/). Default is 'no'. Ex: [catlist thumbnail=yes].
|
104 |
|
105 |
-
* **thumbnail_size** - Either a string keyword (thumbnail, medium, large or full) or
|
106 |
|
107 |
* **thumbnail_class** - Set a CSS class to the thumbnail and style it.
|
108 |
|
@@ -165,6 +165,10 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
168 |
= 0.22.2 =
|
169 |
* Fixed bug with the categorypage=yes param.
|
170 |
* Tested with WordPress 3.3.
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 0.22.3
|
8 |
|
9 |
== Description ==
|
10 |
List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
|
102 |
|
103 |
* **thumbnail** - Show post thumbnail (http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/). Default is 'no'. Ex: [catlist thumbnail=yes].
|
104 |
|
105 |
+
* **thumbnail_size** - Either a string keyword (thumbnail, medium, large or full) or 2 values representing width and height in pixels. Ex: [catlist thumbnail_size=32,32] or [catlist thumbnail_size=thumbnail]
|
106 |
|
107 |
* **thumbnail_class** - Set a CSS class to the thumbnail and style it.
|
108 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 0.22.3=
|
169 |
+
* Fixed thumbnail size parameter, added usage example on README.
|
170 |
+
* Added space after author and date http://wordpress.org/support/topic/plugin-list-category-posts-space-required-after
|
171 |
+
|
172 |
= 0.22.2 =
|
173 |
* Fixed bug with the categorypage=yes param.
|
174 |
* Tested with WordPress 3.3.
|