Permalink
Browse files

Lots of small fixes

git-svn-id: http://plugins.svn.wordpress.org/list-category-posts/trunk@346657 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information...
1 parent 9581c32 commit 7e02302d12cada113e2c9b110d9f4f486dcfee2d @picandocodigo committed Feb 17, 2011
Showing with 25 additions and 13 deletions.
  1. +3 −0 include/CatList.php
  2. +1 −1 list_cat_posts.php
  3. +19 −10 readme.txt
  4. +2 −2 templates/default.php
View
@@ -146,6 +146,9 @@ public function get_date_to_show($single){
public function get_content($single){
if ($this->params['content']=='yes' && $single->post_content){
+ if ( post_password_required($single) ) {
+ return __('This is a protected post.');
+ }
$lcp_content = $single->post_content;
//Need to put some more thought on this!
//Added to stop a post with catlist to display an infinite loop of catlist shortcode parsing
View
@@ -3,7 +3,7 @@
Plugin Name: List category posts
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
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].
-Version: 0.18.2
+Version: 0.18.3
Author: Fernando Briano
Author URI: http://picandocodigo.net/
*/
View
@@ -1,27 +1,32 @@
=== List category posts ===
Contributors: fernandobt
-Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
+Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
Tags: list, categories, posts, cms
Requires at least: 2.8
Tested up to: 3.1
-Stable tag: 0.18.2
+Stable tag: 0.18.3
== Description ==
-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.
+List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
+
+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.
Great to use WordPress as a CMS, and create pages with several categories posts.
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.
-Compatible with WordPress 3.0 and default Twenty Ten theme (http://wordpress.org/support/topic/399754)
-
-Usage: [catlist argument1=value1 argument2=value2].
+Works correctly with WordPress 3.1 and default Twenty Ten theme
+(http://wordpress.org/support/topic/399754)
-*Notice*: On version 0.17 the plugin was again rewritten as objects. This added a few features, please read the documentation on it.
+**Usage**: `[catlist argument1=value1 argument2=value2]`
-Tell us how you use this plugin!
+**Tell us how you use this plugin!**
http://foro.picandocodigo.net/discussion/261/do-you-like-list-category-posts-read-me
+**Support the plugin**
+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").
+
+
==Installation==
* 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
* **customfield_display** - Display custom field(s). You can specify many fields to show, separating them with a coma.
-Your comments and feedback are welcome at: http://foro.picandocodigo.net/categories/list-category-posts
+Your comments and feedback are welcome at:
+http://foro.picandocodigo.net/categories/list-category-posts
**New Code is welcome too** :D
@@ -137,6 +143,9 @@ Template system has changed. Custom templates should be stored in WordPress them
== Changelog ==
+= 0.18.3 =
+* Small excerpt fix, some readme file fixing too.
+
= 0.18.2 =
* Small fixes. Should work for name parameter in all cases now.
@@ -211,7 +220,7 @@ Template system has changed. Custom templates should be stored in WordPress them
= 0.9 =
* admin parameter now shows "display name" instead of "user nice name".
* 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)
-* Added tag support - http://foro.picandocodigo.net/viewtopic.php?f=28&t=240
+* Added tag support
= 0.8.1 =
* Fixed bug for 'content'.
View
@@ -38,7 +38,7 @@
$lcp_display_output .= $this->get_category_link('strong');
//Add 'starting' tag. Here, I'm using an unordered list (ul) as an example:
-$lcp_output .= '<ul class="lcp_catlist">';
+$lcp_display_output .= '<ul class="lcp_catlist">';
/**
* Posts loop.
@@ -83,7 +83,7 @@
* Post content - Example of how to use tag and class parameters:
* This will produce:<div class="lcp_excerpt">The content</div>
*/
- $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_expert');
+ $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_excerpt');
//Close li tag
$lcp_display_output .= '</li>';

0 comments on commit 7e02302

Please sign in to comment.