Version Description
- Ordered lists now follow the posts count when using pagination - https://wordpress.org/support/topic/templateol-resets-count-when-using-pagination
- Fixes issue introduced in 0.54 with undefined indexes - https://wordpress.org/support/topic/problem-continues-with-0542
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.55 |
Comparing to | |
See all releases |
Code changes from version 0.54.2 to 0.55
- include/lcp-catlistdisplayer.php +48 -7
- list_cat_posts.php +1 -1
- readme.txt +8 -1
include/lcp-catlistdisplayer.php
CHANGED
@@ -100,6 +100,11 @@ class CatListDisplayer {
|
|
100 |
|
101 |
$this->lcp_output .= '<' . $tag;
|
102 |
|
|
|
|
|
|
|
|
|
|
|
103 |
//Give a class to wrapper tag
|
104 |
if (isset($this->params['class'])):
|
105 |
$this->lcp_output .= ' class="' . $this->params['class'] . '"';
|
@@ -223,12 +228,26 @@ class CatListDisplayer {
|
|
223 |
$lcp_display_output .= $this->get_post_title($single);
|
224 |
|
225 |
// Comments count
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
// Date
|
229 |
-
$
|
|
|
230 |
$this->params['date_tag'],
|
231 |
$this->params['date_class']);
|
|
|
|
|
|
|
232 |
|
233 |
// Date Modified
|
234 |
if (!empty($this->params['date_modified_tag']) || !empty($this->params['date_modified_class'])):
|
@@ -240,9 +259,17 @@ class CatListDisplayer {
|
|
240 |
endif;
|
241 |
|
242 |
// Author
|
243 |
-
|
|
|
|
|
244 |
$this->params['author_tag'],
|
245 |
$this->params['author_class']);
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
// Display ID
|
248 |
if (!empty($this->params['display_id']) && $this->params['display_id'] == 'yes'){
|
@@ -254,15 +281,29 @@ class CatListDisplayer {
|
|
254 |
|
255 |
$lcp_display_output .= $this->get_thumbnail($single);
|
256 |
|
257 |
-
|
258 |
-
|
|
|
259 |
$this->params['content_tag'],
|
260 |
$this->params['content_class']);
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
-
|
263 |
-
|
|
|
264 |
$this->params['excerpt_tag'],
|
265 |
$this->params['excerpt_class']);
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
|
267 |
$lcp_display_output .= $this->get_posts_morelink($single);
|
268 |
|
100 |
|
101 |
$this->lcp_output .= '<' . $tag;
|
102 |
|
103 |
+
// Follow the numner of posts in an ordered list with pagination
|
104 |
+
if( $tag == 'ol' && $this->catlist->get_page() > 1 ){
|
105 |
+
$start = $this->catlist->get_number_posts() * ($this->catlist->get_page() - 1) + 1;
|
106 |
+
$this->lcp_output .= ' start="' . $start . '" ';
|
107 |
+
}
|
108 |
//Give a class to wrapper tag
|
109 |
if (isset($this->params['class'])):
|
110 |
$this->lcp_output .= ' class="' . $this->params['class'] . '"';
|
228 |
$lcp_display_output .= $this->get_post_title($single);
|
229 |
|
230 |
// Comments count
|
231 |
+
if (!empty($this->params['comments_tag'])):
|
232 |
+
if (!empty($this->params['comments_class'])):
|
233 |
+
$lcp_display_output .= $this->get_comments($single,
|
234 |
+
$this->params['comments_tag'],
|
235 |
+
$this->params['comments_class']);
|
236 |
+
else:
|
237 |
+
$lcp_display_output .= $this->get_comments($single, $this->params['comments_tag']);
|
238 |
+
endif;
|
239 |
+
else:
|
240 |
+
$lcp_display_output .= $this->get_comments($single);
|
241 |
+
endif;
|
242 |
|
243 |
// Date
|
244 |
+
if (!empty($this->params['date_tag']) || !empty($this->params['date_class'])):
|
245 |
+
$lcp_display_output .= $this->get_date($single,
|
246 |
$this->params['date_tag'],
|
247 |
$this->params['date_class']);
|
248 |
+
else:
|
249 |
+
$lcp_display_output .= $this->get_date($single);
|
250 |
+
endif;
|
251 |
|
252 |
// Date Modified
|
253 |
if (!empty($this->params['date_modified_tag']) || !empty($this->params['date_modified_class'])):
|
259 |
endif;
|
260 |
|
261 |
// Author
|
262 |
+
if (!empty($this->params['author_tag'])):
|
263 |
+
if (!empty($this->params['author_class'])):
|
264 |
+
$lcp_display_output .= $this->get_author($single,
|
265 |
$this->params['author_tag'],
|
266 |
$this->params['author_class']);
|
267 |
+
else:
|
268 |
+
$lcp_display_output .= $this->get_author($single, $this->params['author_tag']);
|
269 |
+
endif;
|
270 |
+
else:
|
271 |
+
$lcp_display_output .= $this->get_author($single);
|
272 |
+
endif;
|
273 |
|
274 |
// Display ID
|
275 |
if (!empty($this->params['display_id']) && $this->params['display_id'] == 'yes'){
|
281 |
|
282 |
$lcp_display_output .= $this->get_thumbnail($single);
|
283 |
|
284 |
+
if (!empty($this->params['content_tag'])):
|
285 |
+
if (!empty($this->params['content_class'])):
|
286 |
+
$lcp_display_output .= $this->get_content($single,
|
287 |
$this->params['content_tag'],
|
288 |
$this->params['content_class']);
|
289 |
+
else:
|
290 |
+
$lcp_display_output .= $this->get_content($single, $this->params['content_tag']);
|
291 |
+
endif;
|
292 |
+
else:
|
293 |
+
$lcp_display_output .= $this->get_content($single);
|
294 |
+
endif;
|
295 |
|
296 |
+
if (!empty($this->params['excerpt_tag'])):
|
297 |
+
if (!empty($this->params['excerpt_class'])):
|
298 |
+
$lcp_display_output .= $this->get_excerpt($single,
|
299 |
$this->params['excerpt_tag'],
|
300 |
$this->params['excerpt_class']);
|
301 |
+
else:
|
302 |
+
$lcp_display_output .= $this->get_excerpt($single, $this->params['excerpt_tag']);
|
303 |
+
endif;
|
304 |
+
else:
|
305 |
+
$lcp_display_output .= $this->get_excerpt($single);
|
306 |
+
endif;
|
307 |
|
308 |
$lcp_display_output .= $this->get_posts_morelink($single);
|
309 |
|
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 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.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
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.55
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
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: 4.1
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -439,6 +439,13 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
439 |
|
440 |
== Changelog ==
|
441 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
= 0.54.1 =
|
443 |
* Fixes bug in LcpParameters.
|
444 |
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 0.55
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
439 |
|
440 |
== Changelog ==
|
441 |
|
442 |
+
= 0.55 =
|
443 |
+
* Ordered lists now follow the posts count when using pagination - https://wordpress.org/support/topic/templateol-resets-count-when-using-pagination
|
444 |
+
* Fixes issue introduced in 0.54 with undefined indexes - https://wordpress.org/support/topic/problem-continues-with-0542
|
445 |
+
|
446 |
+
= 0.54.2 =
|
447 |
+
* Fixes call to undefined method lcp_get_current_post_id()
|
448 |
+
|
449 |
= 0.54.1 =
|
450 |
* Fixes bug in LcpParameters.
|
451 |
|