Version Description
- Another minimal bug fixed with the excerpt...
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.11.2 |
Comparing to | |
See all releases |
Code changes from version 0.11.1 to 0.11.2
- list_cat_posts.php +2 -2
- readme.txt +7 -1
- templates/default.php +1 -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.11.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
@@ -128,7 +128,7 @@ function lcp_content($single){
|
|
128 |
|
129 |
function lcp_excerpt($single){
|
130 |
if($single->post_excerpt){
|
131 |
-
return $single->post_excerpt;
|
132 |
}
|
133 |
$lcp_excerpt = strip_tags($single->post_content);
|
134 |
if ( post_password_required($post) ) {
|
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.11.2
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
128 |
|
129 |
function lcp_excerpt($single){
|
130 |
if($single->post_excerpt){
|
131 |
+
return '<p>' . $single->post_excerpt . '</p>';
|
132 |
}
|
133 |
$lcp_excerpt = strip_tags($single->post_content);
|
134 |
if ( post_password_required($post) ) {
|
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
|
7 |
-
Stable tag: 0.11.
|
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.
|
@@ -15,6 +15,9 @@ Compatible with WordPress 3.0 and default Twenty Ten theme (http://wordpress.org
|
|
15 |
|
16 |
Usage: [catlist argument1=value1 argument2=value2].
|
17 |
|
|
|
|
|
|
|
18 |
|
19 |
==Installation==
|
20 |
|
@@ -99,6 +102,9 @@ Template system has changed. Custom templates should be stored in wordpress them
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
102 |
= 0.11.1 =
|
103 |
* Fixed small bug which made the excerpt show up everytime... (Sorry :S)
|
104 |
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 0.11.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. Great to use WordPress as a CMS, and create pages with several categories posts.
|
15 |
|
16 |
Usage: [catlist argument1=value1 argument2=value2].
|
17 |
|
18 |
+
Tell us how you use this plugin!
|
19 |
+
http://foro.picandocodigo.net/viewtopic.php?f=28&t=261
|
20 |
+
|
21 |
|
22 |
==Installation==
|
23 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 0.11.2 =
|
106 |
+
* Another minimal bug fixed with the excerpt...
|
107 |
+
|
108 |
= 0.11.1 =
|
109 |
* Fixed small bug which made the excerpt show up everytime... (Sorry :S)
|
110 |
|
templates/default.php
CHANGED
@@ -52,7 +52,7 @@ foreach($catposts as $single):
|
|
52 |
}
|
53 |
//Show excerpt?
|
54 |
if($atts['excerpt']=='yes' && !($atts['content']=='yes' && $single->post_content) ){
|
55 |
-
$lcp_output .=
|
56 |
}
|
57 |
$lcp_output .='</li>';
|
58 |
endforeach;
|
52 |
}
|
53 |
//Show excerpt?
|
54 |
if($atts['excerpt']=='yes' && !($atts['content']=='yes' && $single->post_content) ){
|
55 |
+
$lcp_output .= lcp_excerpt($single);
|
56 |
}
|
57 |
$lcp_output .='</li>';
|
58 |
endforeach;
|