List category posts - Version 0.30.1

Version Description

= 0.25 = * Translation support.

= 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.

Download this release

Release Info

Developer fernandobt
Plugin Icon 128x128 List category posts
Version 0.30.1
Comparing to
See all releases

Code changes from version 0.30 to 0.30.1

Files changed (3) hide show
  1. include/CatList.php +1 -1
  2. list_cat_posts.php +3 -2
  3. readme.txt +6 -3
include/CatList.php CHANGED
@@ -302,7 +302,7 @@ class CatList{
302
  !($this->params['content']=='yes' &&
303
  $single->post_content) ):
304
 
305
- if($single->post_excerpt):
306
  return $lcp_excerpt = $this->lcp_trim_excerpt($single->post_excerpt);
307
  endif;
308
 
302
  !($this->params['content']=='yes' &&
303
  $single->post_content) ):
304
 
305
+ if($single->post_excerpt && $this->params['excerpt_overwrite'] != 'yes'):
306
  return $lcp_excerpt = $this->lcp_trim_excerpt($single->post_excerpt);
307
  endif;
308
 
list_cat_posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.30
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
@@ -56,7 +56,8 @@ class ListCategoryPosts{
56
  'template' => 'default',
57
  'excerpt' => 'no',
58
  'excerpt_size' => '55',
59
- 'excerpt_strip' => '',
 
60
  'excerpt_tag' =>'',
61
  'excerpt_class' =>'',
62
  'exclude' => '0',
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.30.1
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
56
  'template' => 'default',
57
  'excerpt' => 'no',
58
  'excerpt_size' => '55',
59
+ 'excerpt_strip' => 'yes',
60
+ 'excerpt_overwrite' => 'no',
61
  'excerpt_tag' =>'',
62
  'excerpt_class' =>'',
63
  'exclude' => '0',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
- Stable tag: 0.30
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. When you're editing a page or post, directly insert the shortcode in your text and the posts will be listed there. The **basic** usage would be something like this:
@@ -106,9 +106,9 @@ When using List Category Posts whithout a category id, name or slug, it will pos
106
 
107
  * **dateformat** - Format of the date output. The default format is the one you've set on your WordPress settings. Example: `[catlist id=42 dateformat="l F dS, Y"]` would display the date as "Monday January 21st, 2013". Check http://codex.wordpress.org/Formatting_Date_and_Time for more options to display date.
108
 
109
- * **excerpt** - Display the post's excerpt. Default is 'no', use excerpt=yes to activate it. If you don't have an excerpt in your post, the plugin will fetch this text from the content, striping its images and shortcodes. The limit is set by the *excerpt_size* parameter (55 words by default). It respects your theme's allowed HTML tags and doesn't strip them from the excerpt. If you want to strip tags, use `excerpt_strip=yes`.
110
 
111
- * **excerpt_size** - Set the number of *words* to display from the excerpt. Default is 55. Eg: `excerpt_size = 30`
112
 
113
  * **excerpt_strip** - Set it to `yes` to strip the excerpt's HTML tags.
114
 
@@ -245,6 +245,9 @@ Template system has changed. Custom templates should be stored in WordPress them
245
 
246
  == Changelog ==
247
 
 
 
 
248
  = 0.30 =
249
  * Adds ability to exclude tags.
250
  * Changes excerpt. Since lot of users have asked for it, I once again modified the way the excerpt is shown. It now respects your theme's allowed HTML tags and doesn't strip them from the excerpt. If you want to strip tags, use `excerpt_strip=yes`.
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
+ Stable tag: 0.30.1
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. When you're editing a page or post, directly insert the shortcode in your text and the posts will be listed there. The **basic** usage would be something like this:
106
 
107
  * **dateformat** - Format of the date output. The default format is the one you've set on your WordPress settings. Example: `[catlist id=42 dateformat="l F dS, Y"]` would display the date as "Monday January 21st, 2013". Check http://codex.wordpress.org/Formatting_Date_and_Time for more options to display date.
108
 
109
+ * **excerpt** - Display the post's excerpt. Default is 'no', use `excerpt=yes` to activate it. If you don't have an excerpt in your post, the plugin will fetch this text from the content, striping its images, shortcodes and HTML tags. The limit is set by the *excerpt_size* parameter (55 words by default). If you want the automatically generated excerpt to respect your theme's allowed HTML tags, you should use `excerpt_strip=no`. If the post has an excerpt, the HTML tags are automatically stripped. If you want to overwrite the post's excerpt with an automatically generated one (may be usefull to allow HTML tags), use `excerpt_overwrite=yes`. I added this last parameter to have consistency across excerpts.
110
 
111
+ * **excerpt_size** - Set the number of *words* to display from the excerpt. Default is 55. Eg: `excerpt_size=30`
112
 
113
  * **excerpt_strip** - Set it to `yes` to strip the excerpt's HTML tags.
114
 
245
 
246
  == Changelog ==
247
 
248
+ = 0.31 =
249
+ * **excerpt** - Fixed default excerpt behaviour from previous release. By default it **will** strip html tags as it always did. If you want it not to strip tags, you'll have to use `excerpt_strip=no`. Added a new parameter to have a consistent excerpt. If you want to overwrite WordPress' excerpt when using the plugin and generate one the way the plugin does when there's no excerpt, use `excerpt_overwrite=yes`.
250
+
251
  = 0.30 =
252
  * Adds ability to exclude tags.
253
  * Changes excerpt. Since lot of users have asked for it, I once again modified the way the excerpt is shown. It now respects your theme's allowed HTML tags and doesn't strip them from the excerpt. If you want to strip tags, use `excerpt_strip=yes`.