Version Description
- Fixed a bug with undeclared variable. (Check http://picod.net/walcp, thanks Das!)
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.15.1 |
Comparing to | |
See all releases |
Code changes from version 0.15 to 0.15.1
- list_cat_posts.php +12 -12
- readme.txt +4 -1
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.15
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
@@ -147,35 +147,35 @@ function lcp_category($lcp_category_id, $lcp_category_name, $atts){
|
|
147 |
}
|
148 |
|
149 |
function lcp_display_post($single, $atts){
|
150 |
-
$
|
151 |
|
152 |
if ($atts['comments'] == yes){
|
153 |
-
$
|
154 |
-
$
|
155 |
-
$
|
156 |
}
|
157 |
|
158 |
if ($atts['date']=='yes'){
|
159 |
-
$
|
160 |
}
|
161 |
|
162 |
if ($atts['author']=='yes'){
|
163 |
-
$
|
164 |
}
|
165 |
|
166 |
if ($atts['content']=='yes' && $single->post_content){
|
167 |
-
$
|
168 |
}
|
169 |
|
170 |
if ($atts['excerpt']!='no' && !($atts['content']=='yes' && $single->post_content) ){
|
171 |
-
$
|
172 |
}
|
173 |
|
174 |
if ($atts['thumbnail']=='yes'){
|
175 |
-
$
|
176 |
}
|
177 |
-
$
|
178 |
-
return $
|
179 |
}
|
180 |
|
181 |
function lcp_comments($single){
|
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.15.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
147 |
}
|
148 |
|
149 |
function lcp_display_post($single, $atts){
|
150 |
+
$lcp_display_output = '<li><a href="' . get_permalink($single->ID).'">' . $single->post_title . '</a>';
|
151 |
|
152 |
if ($atts['comments'] == yes){
|
153 |
+
$lcp_display_output .= ' (';
|
154 |
+
$lcp_display_output .= lcp_comments($single);
|
155 |
+
$lcp_display_output .= ')';
|
156 |
}
|
157 |
|
158 |
if ($atts['date']=='yes'){
|
159 |
+
$lcp_display_output .= lcp_showdate($single, $atts['dateformat']);
|
160 |
}
|
161 |
|
162 |
if ($atts['author']=='yes'){
|
163 |
+
$lcp_display_output .= " - ".lcp_showauthor($single) . '<br/>';
|
164 |
}
|
165 |
|
166 |
if ($atts['content']=='yes' && $single->post_content){
|
167 |
+
$lcp_display_output.= lcp_content($single); // line tweaked to output filtered content
|
168 |
}
|
169 |
|
170 |
if ($atts['excerpt']!='no' && !($atts['content']=='yes' && $single->post_content) ){
|
171 |
+
$lcp_display_output .= lcp_excerpt($single);
|
172 |
}
|
173 |
|
174 |
if ($atts['thumbnail']=='yes'){
|
175 |
+
$lcp_display_output .= lcp_thumbnail($single);
|
176 |
}
|
177 |
+
$lcp_display_output.="</li>";
|
178 |
+
return $lcp_display_output;
|
179 |
}
|
180 |
|
181 |
function lcp_comments($single){
|
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: 3.0.1
|
7 |
-
Stable tag: 0.15
|
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.
|
@@ -118,6 +118,9 @@ Template system has changed. Custom templates should be stored in wordpress them
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 0.15 =
|
122 |
* Added custom fields support. Define both custom field (customfield_name) and value (customfield_value) to use it.
|
123 |
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 0.15.1
|
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.
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 0.15.1 =
|
122 |
+
* Fixed a bug with undeclared variable. (Check http://picod.net/walcp, thanks Das!)
|
123 |
+
|
124 |
= 0.15 =
|
125 |
* Added custom fields support. Define both custom field (customfield_name) and value (customfield_value) to use it.
|
126 |
|