List category posts - Version 0.39

Version Description

  • Adds "post suffix" parameter, to add a String after each post listed. Source
Download this release

Release Info

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

Code changes from version 0.38 to 0.39

Files changed (3) hide show
  1. include/CatListDisplayer.php +4 -0
  2. list_cat_posts.php +2 -1
  3. readme.txt +19 -2
include/CatListDisplayer.php CHANGED
@@ -321,6 +321,10 @@ class CatListDisplayer {
321
  endif;
322
  $info .= '>' . apply_filters('the_title', $single->post_title, $single->ID) . '</a>';
323
 
 
 
 
 
324
  return $this->assign_style($info, $tag, $css_class);
325
  }
326
 
321
  endif;
322
  $info .= '>' . apply_filters('the_title', $single->post_title, $single->ID) . '</a>';
323
 
324
+ if( !empty($this->params['post_suffix']) ):
325
+ $info .= " " . $this->params['post_suffix'];
326
+ endif;
327
+
328
  return $this->assign_style($info, $tag, $css_class);
329
  }
330
 
list_cat_posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.38
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
@@ -83,6 +83,7 @@ class ListCategoryPosts{
83
  'post_type' => '',
84
  'post_status' => '',
85
  'post_parent' => '0',
 
86
  'class' => 'lcp_catlist',
87
  'customfield_name' => '',
88
  'customfield_value' =>'',
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.39
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
83
  'post_type' => '',
84
  'post_status' => '',
85
  'post_parent' => '0',
86
+ 'post_suffix' => '',
87
  'class' => 'lcp_catlist',
88
  'customfield_name' => '',
89
  'customfield_value' =>'',
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: 3.3
6
  Tested up to: 3.7.1
7
- Stable tag: 0.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,7 +183,19 @@ update the plugin.
183
  * **any** - retrieves any status except those from post types with 'exclude_from_search' set to true.
184
 
185
 
186
- * **post_parent** - Show only the children of the post with this ID. Default: None.
 
 
 
 
 
 
 
 
 
 
 
 
187
 
188
  * **class** - CSS class for the default UL generated by the plugin.
189
 
@@ -328,6 +340,11 @@ Template system has changed. Custom templates should be stored in WordPress them
328
 
329
  == Changelog ==
330
 
 
 
 
 
 
331
  = 0.38 =
332
 
333
  * Adds pagination. Check **Pagination** on [Other
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.7.1
7
+ Stable tag: 0.39
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
183
  * **any** - retrieves any status except those from post types with 'exclude_from_search' set to true.
184
 
185
 
186
+ * **post_parent** - Show only the children of the post with this ID.
187
+ Default: None.
188
+
189
+ * **post_suffix** - Pass a String to this parameter to display this
190
+ String after every post title.
191
+ Ex: `[catlist numberposts=-1
192
+ post_suffix="Hello World"]` will create something like:
193
+
194
+ ```<ul class="lcp_catlist" id=lcp_instance_0>
195
+ <li>
196
+ <a href="http://127.0.0.1:8080/wordpress/?p=42" title="WordPress">
197
+ WordPress
198
+ </a> Hello World </li>```
199
 
200
  * **class** - CSS class for the default UL generated by the plugin.
201
 
340
 
341
  == Changelog ==
342
 
343
+ = 0.39 =
344
+
345
+ * Adds "post suffix" parameter, to add a String after each post
346
+ listed. [Source](http://wordpress.org/support/topic/hack-post-title-adding-elements)
347
+
348
  = 0.38 =
349
 
350
  * Adds pagination. Check **Pagination** on [Other