Skip to content

Commit

Permalink
Lots of small fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://plugins.svn.wordpress.org/list-category-posts/trunk@346657 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
picandocodigo committed Feb 17, 2011
1 parent 9581c32 commit 7e02302
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
3 changes: 3 additions & 0 deletions include/CatList.php
Expand Up @@ -146,6 +146,9 @@ public function get_date_to_show($single){


public function get_content($single){ public function get_content($single){
if ($this->params['content']=='yes' && $single->post_content){ if ($this->params['content']=='yes' && $single->post_content){
if ( post_password_required($single) ) {
return __('This is a protected post.');
}
$lcp_content = $single->post_content; $lcp_content = $single->post_content;
//Need to put some more thought on this! //Need to put some more thought on this!
//Added to stop a post with catlist to display an infinite loop of catlist shortcode parsing //Added to stop a post with catlist to display an infinite loop of catlist shortcode parsing
Expand Down
2 changes: 1 addition & 1 deletion list_cat_posts.php
Expand Up @@ -3,7 +3,7 @@
Plugin Name: List category posts Plugin Name: List category posts
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ 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]. 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: Fernando Briano
Author URI: http://picandocodigo.net/ Author URI: http://picandocodigo.net/
*/ */
Expand Down
29 changes: 19 additions & 10 deletions readme.txt
@@ -1,27 +1,32 @@
=== List category posts === === List category posts ===
Contributors: fernandobt 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 Tags: list, categories, posts, cms
Requires at least: 2.8 Requires at least: 2.8
Tested up to: 3.1 Tested up to: 3.1
Stable tag: 0.18.2 Stable tag: 0.18.3


== Description == == 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. 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. 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) Works correctly with WordPress 3.1 and default Twenty Ten theme

(http://wordpress.org/support/topic/399754)
Usage: [catlist argument1=value1 argument2=value2].


*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 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== ==Installation==


* Upload listcat directory into you wp-content/plugins/ directory. * Upload listcat directory into you wp-content/plugins/ directory.
Expand Down Expand Up @@ -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. * **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 **New Code is welcome too** :D


Expand Down Expand Up @@ -137,6 +143,9 @@ Template system has changed. Custom templates should be stored in WordPress them


== Changelog == == Changelog ==


= 0.18.3 =
* Small excerpt fix, some readme file fixing too.

= 0.18.2 = = 0.18.2 =
* Small fixes. Should work for name parameter in all cases now. * Small fixes. Should work for name parameter in all cases now.


Expand Down Expand Up @@ -211,7 +220,7 @@ Template system has changed. Custom templates should be stored in WordPress them
= 0.9 = = 0.9 =
* admin parameter now shows "display name" instead of "user nice name". * 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) * 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 = = 0.8.1 =
* Fixed bug for 'content'. * Fixed bug for 'content'.
Expand Down
4 changes: 2 additions & 2 deletions templates/default.php
Expand Up @@ -38,7 +38,7 @@
$lcp_display_output .= $this->get_category_link('strong'); $lcp_display_output .= $this->get_category_link('strong');


//Add 'starting' tag. Here, I'm using an unordered list (ul) as an example: //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. * Posts loop.
Expand Down Expand Up @@ -83,7 +83,7 @@
* Post content - Example of how to use tag and class parameters: * Post content - Example of how to use tag and class parameters:
* This will produce:<div class="lcp_excerpt">The content</div> * 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 //Close li tag
$lcp_display_output .= '</li>'; $lcp_display_output .= '</li>';
Expand Down

0 comments on commit 7e02302

Please sign in to comment.