List category posts - Version 0.10

Version Description

  • Code for the_content was fixed so that the content to output filtered content (thanks DougJoseph http://wordpress.org/support/topic/399754)
Download this release

Release Info

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

Code changes from version 0.9 to 0.10

Files changed (3) hide show
  1. list_cat_posts.php +4 -2
  2. readme.txt +4 -2
  3. templates/default.php +4 -3
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.9
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
  */
@@ -107,7 +107,9 @@ function list_category_posts($atts){
107
  $output.=" - ".$lcp_userdata->display_name . '<br/>';
108
  }
109
  if($atts['content']=='yes' && $single->post_content){
110
- $output .= "<p>$single->post_content</p>";
 
 
111
  }
112
  if($atts['excerpt']=='yes' && $single->post_excerpt && !($atts['content']=='yes' && $single->post_content) ){
113
  $output .= "<p>$single->post_excerpt</p>";
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.10
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
  */
107
  $output.=" - ".$lcp_userdata->display_name . '<br/>';
108
  }
109
  if($atts['content']=='yes' && $single->post_content){
110
+ $lcpcontent = apply_filters('the_content', $single->post_content); // added to parse shortcodes
111
+ $lcpcontent = str_replace(']]>', ']]&gt', $lcpcontent); // added to parse shortcodes
112
+ $output.= '<p>' . $lcpcontent . '</p>'; // line tweaked to output filtered content
113
  }
114
  if($atts['excerpt']=='yes' && $single->post_excerpt && !($atts['content']=='yes' && $single->post_content) ){
115
  $output .= "<p>$single->post_excerpt</p>";
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: 2.8
6
  Tested up to: 2.9.2
7
- Stable tag: 0.9
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. Great to use WordPress as a CMS, and create pages with several categories posts.
@@ -14,7 +14,6 @@ Since version 0.8, the sidebar widget has been migrated to WordPress 2.8 Widget
14
  Usage: [catlist argument1=value1 argument2=value2].
15
 
16
 
17
-
18
  ==Installation==
19
 
20
  * Upload listcat directory into you wp-content/plugins/ directory.
@@ -98,6 +97,9 @@ Template system has changed. Custom templates should be stored in wordpress them
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 0.9 =
102
  * admin parameter now shows "display name" instead of "user nice name".
103
  * 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)
4
  Tags: list, categories, posts, cms
5
  Requires at least: 2.8
6
  Tested up to: 2.9.2
7
+ Stable tag: 0.10
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. Great to use WordPress as a CMS, and create pages with several categories posts.
14
  Usage: [catlist argument1=value1 argument2=value2].
15
 
16
 
 
17
  ==Installation==
18
 
19
  * Upload listcat directory into you wp-content/plugins/ directory.
97
 
98
  == Changelog ==
99
 
100
+ = 0.10 =
101
+ * Code for the_content was fixed so that the content to output filtered content (thanks DougJoseph http://wordpress.org/support/topic/399754)
102
+
103
  = 0.9 =
104
  * admin parameter now shows "display name" instead of "user nice name".
105
  * 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)
templates/default.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List Category Posts - Template
4
  Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
5
  Description: Template file for List Category Post Plugin for Wordpress which is used by plugin by argument template=value.php
6
- Version: 0.4
7
  Author: Radek Uldrych & Fernando Briano
8
  Author URI: http://picandocodigo.net http://radoviny.net
9
  */
@@ -31,7 +31,6 @@ if ($cat_link_string != ''){
31
  }else{
32
  $output = '';
33
  }
34
- $output .= 'Using template';
35
  //Posts loop:
36
  foreach($catposts as $single):
37
  $output .= '<li><a href="' . get_permalink($single->ID) . '">' . $single->post_title . '</a>';
@@ -46,7 +45,9 @@ foreach($catposts as $single):
46
  }
47
  //Show content?
48
  if($atts['content']=='yes' && $single->post_content){
49
- $output .= "<p>$single->post_content</p>";
 
 
50
  }
51
  //Show excerpt?
52
  if($atts['excerpt']=='yes' && $single->post_excerpt && !($atts['content']=='yes' && $single->post_content) ){
3
  Plugin Name: List Category Posts - Template
4
  Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
5
  Description: Template file for List Category Post Plugin for Wordpress which is used by plugin by argument template=value.php
6
+ Version: 0.6
7
  Author: Radek Uldrych & Fernando Briano
8
  Author URI: http://picandocodigo.net http://radoviny.net
9
  */
31
  }else{
32
  $output = '';
33
  }
 
34
  //Posts loop:
35
  foreach($catposts as $single):
36
  $output .= '<li><a href="' . get_permalink($single->ID) . '">' . $single->post_title . '</a>';
45
  }
46
  //Show content?
47
  if($atts['content']=='yes' && $single->post_content){
48
+ $lcpcontent = apply_filters('the_content', $single->post_content); // added to parse shortcodes
49
+ $lcpcontent = str_replace(']]>', ']]&gt', $lcpcontent); // added to parse shortcodes
50
+ $output.= '<p>' . $lcpcontent . '</p>'; // line tweaked to output filtered content
51
  }
52
  //Show excerpt?
53
  if($atts['excerpt']=='yes' && $single->post_excerpt && !($atts['content']=='yes' && $single->post_content) ){