Version Description
- Small bugfix with customfield_display_name (wasn't working now it is)
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.41.2 |
Comparing to | |
See all releases |
Code changes from version 0.41.1 to 0.41.2
- include/CatList.php +9 -4
- list_cat_posts.php +2 -2
- readme.txt +6 -1
include/CatList.php
CHANGED
@@ -314,18 +314,23 @@ class CatList{
|
|
314 |
//Loop on custom fields and if there's a value, add it:
|
315 |
foreach ($custom_array as $something) :
|
316 |
$my_custom_field = $custom_fields[$something];
|
|
|
317 |
if (sizeof($my_custom_field) > 0 ):
|
|
|
318 |
foreach ( $my_custom_field as $key => $value ) :
|
319 |
$lcp_customs .= "<div class=\"lcp-customfield\">";
|
320 |
-
|
321 |
-
|
322 |
-
$lcp_customs .= $
|
|
|
|
|
323 |
endforeach;
|
|
|
324 |
endif;
|
|
|
325 |
endforeach;
|
326 |
|
327 |
return $lcp_customs;
|
328 |
-
|
329 |
else:
|
330 |
return null;
|
331 |
endif;
|
314 |
//Loop on custom fields and if there's a value, add it:
|
315 |
foreach ($custom_array as $something) :
|
316 |
$my_custom_field = $custom_fields[$something];
|
317 |
+
|
318 |
if (sizeof($my_custom_field) > 0 ):
|
319 |
+
|
320 |
foreach ( $my_custom_field as $key => $value ) :
|
321 |
$lcp_customs .= "<div class=\"lcp-customfield\">";
|
322 |
+
|
323 |
+
if ($this->params['customfield_display_name'] != "no")
|
324 |
+
$lcp_customs .= $something . " : ";
|
325 |
+
|
326 |
+
$lcp_customs .= $value . "</div>";
|
327 |
endforeach;
|
328 |
+
|
329 |
endif;
|
330 |
+
|
331 |
endforeach;
|
332 |
|
333 |
return $lcp_customs;
|
|
|
334 |
else:
|
335 |
return null;
|
336 |
endif;
|
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 |
|
@@ -89,7 +89,7 @@ class ListCategoryPosts{
|
|
89 |
'customfield_name' => '',
|
90 |
'customfield_value' =>'',
|
91 |
'customfield_display' =>'',
|
92 |
-
'customfield_display_name' =>'
|
93 |
'customfield_orderby' =>'',
|
94 |
'taxonomy' => '',
|
95 |
'categorypage' => '',
|
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.2
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
|
89 |
'customfield_name' => '',
|
90 |
'customfield_value' =>'',
|
91 |
'customfield_display' =>'',
|
92 |
+
'customfield_display_name' =>'',
|
93 |
'customfield_orderby' =>'',
|
94 |
'taxonomy' => '',
|
95 |
'categorypage' => '',
|
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 |
|
@@ -376,6 +376,11 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
376 |
|
377 |
== Changelog ==
|
378 |
|
|
|
|
|
|
|
|
|
|
|
379 |
= 0.41.1 =
|
380 |
* Fixes customfield display name.
|
381 |
* Fixes size in getting thumbnails, now checks for all available
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 0.41.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
376 |
|
377 |
== Changelog ==
|
378 |
|
379 |
+
= 0.41.2 =
|
380 |
+
* Small bugfix with customfield_display_name (wasn't working now it
|
381 |
+
is)
|
382 |
+
|
383 |
+
|
384 |
= 0.41.1 =
|
385 |
* Fixes customfield display name.
|
386 |
* Fixes size in getting thumbnails, now checks for all available
|