List category posts - Version 0.18.3

Version Description

  • Small excerpt fix, some readme file fixing too.
  • Not showing the_content for password protected posts.
Download this release

Release Info

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

Code changes from version 0.18.2 to 0.18.3

Files changed (4) hide show
  1. include/CatList.php +3 -0
  2. list_cat_posts.php +1 -1
  3. readme.txt +20 -10
  4. templates/default.php +2 -2
include/CatList.php CHANGED
@@ -146,6 +146,9 @@ class CatList{
146
 
147
  public function get_content($single){
148
  if ($this->params['content']=='yes' && $single->post_content){
 
 
 
149
  $lcp_content = $single->post_content;
150
  //Need to put some more thought on this!
151
  //Added to stop a post with catlist to display an infinite loop of catlist shortcode parsing
146
 
147
  public function get_content($single){
148
  if ($this->params['content']=='yes' && $single->post_content){
149
+ if ( post_password_required($single) ) {
150
+ return __('This is a protected post.');
151
+ }
152
  $lcp_content = $single->post_content;
153
  //Need to put some more thought on this!
154
  //Added to stop a post with catlist to display an infinite loop of catlist shortcode parsing
list_cat_posts.php CHANGED
@@ -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.18.2
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.18.3
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
  */
readme.txt CHANGED
@@ -1,27 +1,32 @@
1
  === List category posts ===
2
  Contributors: fernandobt
3
- Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
4
  Tags: list, categories, posts, cms
5
  Requires at least: 2.8
6
  Tested up to: 3.1
7
- Stable tag: 0.18.2
8
 
9
  == Description ==
10
- List Category Posts is a simple WordPress plugin which 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.
 
 
11
 
12
  Great to use WordPress as a CMS, and create pages with several categories posts.
13
 
14
  The plugin includes a widget, which works pretty much the same as the plugin. Just add as many widgets as you want, and select all the available options from the Appearence > Widgets page.
15
 
16
- Compatible with WordPress 3.0 and default Twenty Ten theme (http://wordpress.org/support/topic/399754)
17
-
18
- Usage: [catlist argument1=value1 argument2=value2].
19
 
20
- *Notice*: On version 0.17 the plugin was again rewritten as objects. This added a few features, please read the documentation on it.
21
 
22
- Tell us how you use this plugin!
23
  http://foro.picandocodigo.net/discussion/261/do-you-like-list-category-posts-read-me
24
 
 
 
 
 
25
  ==Installation==
26
 
27
  * Upload listcat directory into you wp-content/plugins/ directory.
@@ -97,7 +102,8 @@ If you use both arguments (wrong!), List Category Posts will show the posts from
97
  * **customfield_display** - Display custom field(s). You can specify many fields to show, separating them with a coma.
98
 
99
 
100
- Your comments and feedback are welcome at: http://foro.picandocodigo.net/categories/list-category-posts
 
101
 
102
  **New Code is welcome too** :D
103
 
@@ -137,6 +143,10 @@ Template system has changed. Custom templates should be stored in WordPress them
137
 
138
  == Changelog ==
139
 
 
 
 
 
140
  = 0.18.2 =
141
  * Small fixes. Should work for name parameter in all cases now.
142
 
@@ -211,7 +221,7 @@ Template system has changed. Custom templates should be stored in WordPress them
211
  = 0.9 =
212
  * admin parameter now shows "display name" instead of "user nice name".
213
  * Template system has changed: In older version, custom templates got deleted if an automatic upgrade was done. Now templates are stored in the theme folder. (Thanks Paul Clark)
214
- * Added tag support - http://foro.picandocodigo.net/viewtopic.php?f=28&t=240
215
 
216
  = 0.8.1 =
217
  * Fixed bug for 'content'.
1
  === List category posts ===
2
  Contributors: fernandobt
3
+ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
4
  Tags: list, categories, posts, cms
5
  Requires at least: 2.8
6
  Tested up to: 3.1
7
+ Stable tag: 0.18.3
8
 
9
  == Description ==
10
+ List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
11
+
12
+ The 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 also display the post author, date, excerpt, custom field values, even the content! The [catlist] shortcode can be used as many times as needed with different arguments on each post/page.
13
 
14
  Great to use WordPress as a CMS, and create pages with several categories posts.
15
 
16
  The plugin includes a widget, which works pretty much the same as the plugin. Just add as many widgets as you want, and select all the available options from the Appearence > Widgets page.
17
 
18
+ Works correctly with WordPress 3.1 and default Twenty Ten theme
19
+ (http://wordpress.org/support/topic/399754)
 
20
 
21
+ **Usage**: `[catlist argument1=value1 argument2=value2]`
22
 
23
+ **Tell us how you use this plugin!**
24
  http://foro.picandocodigo.net/discussion/261/do-you-like-list-category-posts-read-me
25
 
26
+ **Support the plugin**
27
+ If you've found the plugin useful, consider making a [donation via PayPal](http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ "Donate via PayPal") or visit my [Amazon Wishlist](http://www.amazon.com/gp/registry/wishlist/2HU1JYOF7DX5Q/ref=wl_web "Amazon Wishlist").
28
+
29
+
30
  ==Installation==
31
 
32
  * Upload listcat directory into you wp-content/plugins/ directory.
102
  * **customfield_display** - Display custom field(s). You can specify many fields to show, separating them with a coma.
103
 
104
 
105
+ Your comments and feedback are welcome at:
106
+ http://foro.picandocodigo.net/categories/list-category-posts
107
 
108
  **New Code is welcome too** :D
109
 
143
 
144
  == Changelog ==
145
 
146
+ = 0.18.3 =
147
+ * Small excerpt fix, some readme file fixing too.
148
+ * Not showing the_content for password protected posts.
149
+
150
  = 0.18.2 =
151
  * Small fixes. Should work for name parameter in all cases now.
152
 
221
  = 0.9 =
222
  * admin parameter now shows "display name" instead of "user nice name".
223
  * Template system has changed: In older version, custom templates got deleted if an automatic upgrade was done. Now templates are stored in the theme folder. (Thanks Paul Clark)
224
+ * Added tag support
225
 
226
  = 0.8.1 =
227
  * Fixed bug for 'content'.
templates/default.php CHANGED
@@ -38,7 +38,7 @@ $lcp_display_output = '';
38
  $lcp_display_output .= $this->get_category_link('strong');
39
 
40
  //Add 'starting' tag. Here, I'm using an unordered list (ul) as an example:
41
- $lcp_output .= '<ul class="lcp_catlist">';
42
 
43
  /**
44
  * Posts loop.
@@ -83,7 +83,7 @@ foreach ($this->catlist->get_categories_posts() as $single):
83
  * Post content - Example of how to use tag and class parameters:
84
  * This will produce:<div class="lcp_excerpt">The content</div>
85
  */
86
- $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_expert');
87
 
88
  //Close li tag
89
  $lcp_display_output .= '</li>';
38
  $lcp_display_output .= $this->get_category_link('strong');
39
 
40
  //Add 'starting' tag. Here, I'm using an unordered list (ul) as an example:
41
+ $lcp_display_output .= '<ul class="lcp_catlist">';
42
 
43
  /**
44
  * Posts loop.
83
  * Post content - Example of how to use tag and class parameters:
84
  * This will produce:<div class="lcp_excerpt">The content</div>
85
  */
86
+ $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_excerpt');
87
 
88
  //Close li tag
89
  $lcp_display_output .= '</li>';