List category posts - Version 0.84.1

Version Description

  • Filter hook added: shortcode_atts_catlist, see the docs.
  • Filter hook added: lcp_pagination_html, see the source.
Download this release

Release Info

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

Code changes from version 0.84 to 0.84.1

include/lcp-paginator.php CHANGED
@@ -101,6 +101,7 @@ class LcpPaginator {
101
 
102
  $pag_output .= "</ul>";
103
  }
 
104
  return $pag_output;
105
  }
106
  }
101
 
102
  $pag_output .= "</ul>";
103
  }
104
+ $pag_output = apply_filters( 'lcp_pagination_html', $pag_output, $params, $pages_count );
105
  return $pag_output;
106
  }
107
  }
list-category-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 by category in 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, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.84
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
@@ -160,7 +160,8 @@ class ListCategoryPosts{
160
  * @param $content
161
  */
162
  static function catlist_func($atts) {
163
- $atts = shortcode_atts(self::default_params(), $atts);
 
164
 
165
  if($atts['numberposts'] == ''){
166
  $atts['numberposts'] = get_option('numberposts');
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 by category in 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, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.84.1
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
160
  * @param $content
161
  */
162
  static function catlist_func($atts) {
163
+ // Can be filtered using the shortcode_atts_catlist hook.
164
+ $atts = shortcode_atts(self::default_params(), $atts, 'catlist');
165
 
166
  if($atts['numberposts'] == ''){
167
  $atts['numberposts'] = get_option('numberposts');
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 5.7.1
7
  Requires PHP: 5.4
8
- Stable tag: 0.84
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -232,6 +232,11 @@ Template system has changed. Custom templates should be stored in WordPress them
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
235
  = 0.84.0 =
236
 
237
  * **New feature**: Select specific posts by IDs: `[catlist includeposts="2,97"]`. Thanks @hvianna!
5
  Requires at least: 3.3
6
  Tested up to: 5.7.1
7
  Requires PHP: 5.4
8
+ Stable tag: 0.84.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
232
 
233
  == Changelog ==
234
 
235
+ = 0.84.1 =
236
+
237
+ * Filter hook added: `shortcode_atts_catlist`, see [the docs](https://developer.wordpress.org/reference/hooks/shortcode_atts_shortcode/).
238
+ * Filter hook added: `lcp_pagination_html`, see [the source](https://github.com/picandocodigo/List-Category-Posts/blob/90d6cf08aad9c4590e3c06b8ce8d9256f757917f/include/lcp-paginator.php#L104).
239
+
240
  = 0.84.0 =
241
 
242
  * **New feature**: Select specific posts by IDs: `[catlist includeposts="2,97"]`. Thanks @hvianna!