Version Description
- Bugfix release: fix for featured image link to full post not working. Thanks Werner!
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.80.1 |
Comparing to | |
See all releases |
Code changes from version 0.80 to 0.80.1
- include/lcp-thumbnail.php +2 -2
- list-category-posts.php +1 -1
- readme.txt +5 -1
include/lcp-thumbnail.php
CHANGED
@@ -41,7 +41,7 @@ class LcpThumbnail{
|
|
41 |
$lcp_thumbnail = '<a href="' . esc_url(get_permalink($single->ID)) .
|
42 |
'" title="' . esc_attr($single->post_title) . '">';
|
43 |
|
44 |
-
$lcp_thumbnail
|
45 |
if ( $lcp_thumb_class != null ) { // thumbnail class passed as parameter to shortcode
|
46 |
$lcp_thumbnail .= ' class="' . $lcp_thumb_class . '" ';
|
47 |
}
|
@@ -49,7 +49,7 @@ class LcpThumbnail{
|
|
49 |
$lcp_thumbnail .= ' class="lcp_thumbnail" ';
|
50 |
}
|
51 |
$lcp_thumbnail .= ' alt="' . esc_attr($single->post_title) . '" />';
|
52 |
-
|
53 |
$lcp_thumbnail .= '</a>';
|
54 |
} else {
|
55 |
// if thumbnail is requested but not found as featured image, grab first image in the content of the post
|
41 |
$lcp_thumbnail = '<a href="' . esc_url(get_permalink($single->ID)) .
|
42 |
'" title="' . esc_attr($single->post_title) . '">';
|
43 |
|
44 |
+
$lcp_thumbnail .= '<img src="' . get_the_post_thumbnail_url($single->ID, $lcp_thumb_size) .'"';
|
45 |
if ( $lcp_thumb_class != null ) { // thumbnail class passed as parameter to shortcode
|
46 |
$lcp_thumbnail .= ' class="' . $lcp_thumb_class . '" ';
|
47 |
}
|
49 |
$lcp_thumbnail .= ' class="lcp_thumbnail" ';
|
50 |
}
|
51 |
$lcp_thumbnail .= ' alt="' . esc_attr($single->post_title) . '" />';
|
52 |
+
|
53 |
$lcp_thumbnail .= '</a>';
|
54 |
} else {
|
55 |
// if thumbnail is requested but not found as featured image, grab first image in the content of the post
|
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.80
|
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.80.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
|
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 0.80
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -229,6 +229,10 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
229 |
|
230 |
== Changelog ==
|
231 |
|
|
|
|
|
|
|
|
|
232 |
= 0.80 =
|
233 |
|
234 |
* Use post title as alt attribute in thumbnails. Thanks @arcticmouse!
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 0.80.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
229 |
|
230 |
== Changelog ==
|
231 |
|
232 |
+
= 0.80.1 =
|
233 |
+
|
234 |
+
* Bugfix release: fix for featured image link to full post not working. Thanks Werner!
|
235 |
+
|
236 |
= 0.80 =
|
237 |
|
238 |
* Use post title as alt attribute in thumbnails. Thanks @arcticmouse!
|