Display Posts Shortcode - Version 2.6.1

Version Description

Download this release

Release Info

Developer billerickson
Plugin Icon 128x128 Display Posts Shortcode
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6.0 to 2.6.1

Files changed (2) hide show
  1. display-posts-shortcode.php +3 -3
  2. readme.txt +4 -1
display-posts-shortcode.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Display Posts Shortcode
4
  * Plugin URI: http://www.billerickson.net/shortcode-to-display-posts/
5
  * Description: Display a listing of posts using the [display-posts] shortcode
6
- * Version: 2.6.0
7
  * Author: Bill Erickson
8
  * Author URI: http://www.billerickson.net
9
  *
@@ -15,7 +15,7 @@
15
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
  *
17
  * @package Display Posts
18
- * @version 2.6
19
  * @author Bill Erickson <bill@billerickson.net>
20
  * @copyright Copyright (c) 2011, Bill Erickson
21
  * @link http://www.billerickson.net/shortcode-to-display-posts/
@@ -417,7 +417,7 @@ function be_display_posts_shortcode( $atts ) {
417
  if ( $include_excerpt ) {
418
  $excerpt_length = $excerpt_length ? $excerpt_length : apply_filters( 'excerpt_length', 55 );
419
  $excerpt_more = $excerpt_more ? $excerpt_more : apply_filters( 'excerpt_more', ' ' . '[&hellip;]' );
420
- $excerpt = ' <span class="excerpt-dash">-</span> <span class="excerpt">' . wp_trim_words( strip_shortcodes( get_the_content('') ), $excerpt_length, $excerpt_more ) . '</span>';
421
  }
422
 
423
  if( $include_content ) {
3
  * Plugin Name: Display Posts Shortcode
4
  * Plugin URI: http://www.billerickson.net/shortcode-to-display-posts/
5
  * Description: Display a listing of posts using the [display-posts] shortcode
6
+ * Version: 2.6.1
7
  * Author: Bill Erickson
8
  * Author URI: http://www.billerickson.net
9
  *
15
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
  *
17
  * @package Display Posts
18
+ * @version 2.5
19
  * @author Bill Erickson <bill@billerickson.net>
20
  * @copyright Copyright (c) 2011, Bill Erickson
21
  * @link http://www.billerickson.net/shortcode-to-display-posts/
417
  if ( $include_excerpt ) {
418
  $excerpt_length = $excerpt_length ? $excerpt_length : apply_filters( 'excerpt_length', 55 );
419
  $excerpt_more = $excerpt_more ? $excerpt_more : apply_filters( 'excerpt_more', ' ' . '[&hellip;]' );
420
+ $excerpt = ' <span class="excerpt-dash">-</span> <span class="excerpt">' . wp_trim_words( get_the_excerpt(), $excerpt_length, $excerpt_more ) . '</span>';
421
  }
422
 
423
  if( $include_content ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: shortcode, pages, posts, page, query, display, list
5
  Requires at least: 3.0
6
  Tested up to: 4.5.2
7
- Stable tag: 2.6.0
8
 
9
  Display a listing of posts using the [display-posts] shortcode
10
 
@@ -29,6 +29,9 @@ See the [WordPress Codex](http://codex.wordpress.org/Class_Reference/WP_Query) f
29
 
30
  == Changelog ==
31
 
 
 
 
32
  **Version 2.6**
33
 
34
  * Add support for author="current"
4
  Tags: shortcode, pages, posts, page, query, display, list
5
  Requires at least: 3.0
6
  Tested up to: 4.5.2
7
+ Stable tag: 2.6.1
8
 
9
  Display a listing of posts using the [display-posts] shortcode
10
 
29
 
30
  == Changelog ==
31
 
32
+ **Version 2.6.1**
33
+ * Fix issue with manually specified excerpts
34
+
35
  **Version 2.6**
36
 
37
  * Add support for author="current"