List category posts - Version 0.41.1

Version Description

  • Fixes customfield display name.
    • Fixes size in getting thumbnails, now checks for all available sizes and defaults ("thumbnail", "full", etc.)
Download this release

Release Info

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

Code changes from version 0.41.0 to 0.41.1

Files changed (3) hide show
  1. include/CatList.php +10 -4
  2. list_cat_posts.php +1 -1
  3. readme.txt +7 -4
include/CatList.php CHANGED
@@ -317,7 +317,7 @@ class CatList{
317
  if (sizeof($my_custom_field) > 0 ):
318
  foreach ( $my_custom_field as $key => $value ) :
319
  $lcp_customs .= "<div class=\"lcp-customfield\">";
320
- if ($this->params['customfield_display_name'] != "no")
321
  $lcp_customs .= $something . " : ";
322
  $lcp_customs .= $value . "</div>";
323
  endforeach;
@@ -451,11 +451,17 @@ class CatList{
451
  if ($this->params['thumbnail']=='yes'):
452
  $lcp_thumbnail = '';
453
  if ( has_post_thumbnail($single->ID) ):
454
- $avalaible_image_sizes = get_intermediate_image_sizes();
 
 
 
 
 
 
455
  if ( in_array(
456
  $this->params['thumbnail_size'],
457
- $avalaible_image_sizes
458
- )
459
  ):
460
  $lcp_thumb_size = $this->params['thumbnail_size'];
461
  elseif ($this->params['thumbnail_size']):
317
  if (sizeof($my_custom_field) > 0 ):
318
  foreach ( $my_custom_field as $key => $value ) :
319
  $lcp_customs .= "<div class=\"lcp-customfield\">";
320
+ if ($this->params['customfield_display_name'] == "no")
321
  $lcp_customs .= $something . " : ";
322
  $lcp_customs .= $value . "</div>";
323
  endforeach;
451
  if ($this->params['thumbnail']=='yes'):
452
  $lcp_thumbnail = '';
453
  if ( has_post_thumbnail($single->ID) ):
454
+
455
+ $available_image_sizes = array_unique(
456
+ array_merge(
457
+ get_intermediate_image_sizes(),
458
+ array("thumbnail", "medium", "large", "full")
459
+ )
460
+ );
461
  if ( in_array(
462
  $this->params['thumbnail_size'],
463
+ $available_image_sizes
464
+ )
465
  ):
466
  $lcp_thumb_size = $this->params['thumbnail_size'];
467
  elseif ($this->params['thumbnail_size']):
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.41
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
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 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.41.1
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
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: 3.8
7
- Stable tag: 0.41
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -343,8 +343,6 @@ And in your theme's CSS:
343
 
344
  `<?php echo do_shortcode("[catlist id=3]"); ?>`
345
 
346
- **Please do not ask for support when you are having issues with your CSS**. I can't solve every user's CSS problems. Feel free to ask on the forums or WP Answers. But please, **[read the instructions first](http://wordpress.org/extend/plugins/list-category-posts/other_notes/)**.
347
-
348
  == Upgrade Notice ==
349
 
350
  = 0.37 =
@@ -378,7 +376,12 @@ Template system has changed. Custom templates should be stored in WordPress them
378
 
379
  == Changelog ==
380
 
381
- = 0.41 =
 
 
 
 
 
382
  * Adds options page, to set the default numberposts value globally.
383
  * Adds `customfield_display_name` param.
384
  * Adds pagination to custom template.
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.8
7
+ Stable tag: 0.41.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
343
 
344
  `<?php echo do_shortcode("[catlist id=3]"); ?>`
345
 
 
 
346
  == Upgrade Notice ==
347
 
348
  = 0.37 =
376
 
377
  == Changelog ==
378
 
379
+ = 0.41.1 =
380
+ * Fixes customfield display name.
381
+ * Fixes size in getting thumbnails, now checks for all available
382
+ sizes and defaults ("thumbnail", "full", etc.)
383
+
384
+ = 0.41.0 =
385
  * Adds options page, to set the default numberposts value globally.
386
  * Adds `customfield_display_name` param.
387
  * Adds pagination to custom template.