Version Description
Thanks @mmatthews1981, @ottadvantage and @mhoeher for their contributions on this version: * Adds Alt Tag to thumbnail * Handle child_categories flag correctly - https://github.com/picandocodigo/List-Category-Posts/pull/185 * Adds a default value to numberposts on plugin activation - https://github.com/picandocodigo/List-Category-Posts/pull/193
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.68 |
Comparing to | |
See all releases |
Code changes from version 0.67.1 to 0.68
- include/lcp-catlist.php +3 -1
- include/lcp-thumbnail.php +1 -1
- list-category-posts.php +8 -2
- readme.txt +9 -2
include/lcp-catlist.php
CHANGED
@@ -117,7 +117,9 @@ class CatList{
|
|
117 |
if ( is_array($this->lcp_category_id) ){
|
118 |
return array('category__and' => $this->lcp_category_id);
|
119 |
} else {
|
120 |
-
if($this->utils->lcp_not_empty('child_categories') &&
|
|
|
|
|
121 |
return array('category__in'=> $this->lcp_category_id);
|
122 |
}
|
123 |
return array('cat'=> $this->lcp_category_id);
|
117 |
if ( is_array($this->lcp_category_id) ){
|
118 |
return array('category__and' => $this->lcp_category_id);
|
119 |
} else {
|
120 |
+
if($this->utils->lcp_not_empty('child_categories') &&
|
121 |
+
(($this->params['child_categories'] === 'no' ) ||
|
122 |
+
($this->params['child_categories'] === 'false') )){
|
123 |
return array('category__in'=> $this->lcp_category_id);
|
124 |
}
|
125 |
return array('cat'=> $this->lcp_category_id);
|
include/lcp-thumbnail.php
CHANGED
@@ -60,7 +60,7 @@ class LcpThumbnail{
|
|
60 |
else { // Otherwise, use this class name
|
61 |
$lcp_thumbnail .= 'class="lcp_thumbnail" ';
|
62 |
}
|
63 |
-
$lcp_thumbnail .= ' /></a>';
|
64 |
}
|
65 |
}
|
66 |
} else {
|
60 |
else { // Otherwise, use this class name
|
61 |
$lcp_thumbnail .= 'class="lcp_thumbnail" ';
|
62 |
}
|
63 |
+
$lcp_thumbnail .= ' alt="' . esc_attr($single->post_title) . '" /></a>';
|
64 |
}
|
65 |
}
|
66 |
} else {
|
list-category-posts.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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 |
|
10 |
Text Domain: list-category-posts
|
11 |
Domain Path: /languages/
|
12 |
|
13 |
-
Copyright 2008-
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -165,6 +165,12 @@ function lpc_meta($links, $file) {
|
|
165 |
|
166 |
add_filter( 'plugin_row_meta', 'lpc_meta', 10, 2 );
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
function load_i18n(){
|
169 |
load_plugin_textdomain( 'list-category-posts', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
170 |
}
|
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.68
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
10 |
Text Domain: list-category-posts
|
11 |
Domain Path: /languages/
|
12 |
|
13 |
+
Copyright 2008-2016 Fernando Briano (email : fernando@picandocodigo.net)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
165 |
|
166 |
add_filter( 'plugin_row_meta', 'lpc_meta', 10, 2 );
|
167 |
|
168 |
+
//adds a default value to numberposts on plugin activation
|
169 |
+
function set_default_numberposts() {
|
170 |
+
add_option('numberposts', 10);
|
171 |
+
}
|
172 |
+
register_activation_hook( __FILE__, 'set_default_numberposts' );
|
173 |
+
|
174 |
function load_i18n(){
|
175 |
load_plugin_textdomain( 'list-category-posts', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
176 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: fernandobt
|
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -532,6 +532,13 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
532 |
|
533 |
== Changelog ==
|
534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
= 0.67.1 =
|
536 |
* Bugfix release, this should fix the issues with Parent Categories listings.
|
537 |
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.4.2
|
7 |
+
Stable tag: 0.68
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
532 |
|
533 |
== Changelog ==
|
534 |
|
535 |
+
= 0.68 =
|
536 |
+
Thanks @mmatthews1981, @ottadvantage and @mhoeher for their contributions on this version:
|
537 |
+
* Adds Alt Tag to thumbnail
|
538 |
+
* Handle child_categories flag correctly - https://github.com/picandocodigo/List-Category-Posts/pull/185
|
539 |
+
* Adds a default value to numberposts on plugin activation - https://github.com/picandocodigo/List-Category-Posts/pull/193
|
540 |
+
|
541 |
+
|
542 |
= 0.67.1 =
|
543 |
* Bugfix release, this should fix the issues with Parent Categories listings.
|
544 |
|