Display Posts Shortcode - Version 2.5.1

Version Description

Download this release

Release Info

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

Code changes from version 2.5 to 2.5.1

Files changed (2) hide show
  1. display-posts-shortcode.php +2 -2
  2. readme.txt +5 -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.5
7
  * Author: Bill Erickson
8
  * Author URI: http://www.billerickson.net
9
  *
@@ -405,7 +405,7 @@ function be_display_posts_shortcode( $atts ) {
405
  $author = apply_filters( 'display_posts_shortcode_author', ' <span class="author">by ' . get_the_author() . '</span>' );
406
 
407
  if ( $include_excerpt )
408
- $excerpt = ' <span class="excerpt-dash">-</span> <span class="excerpt">' . wp_trim_excerpt() . '</span>';
409
 
410
  if( $include_content ) {
411
  add_filter( 'shortcode_atts_display-posts', 'be_display_posts_off', 10, 3 );
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.5.1
7
  * Author: Bill Erickson
8
  * Author URI: http://www.billerickson.net
9
  *
405
  $author = apply_filters( 'display_posts_shortcode_author', ' <span class="author">by ' . get_the_author() . '</span>' );
406
 
407
  if ( $include_excerpt )
408
+ $excerpt = ' <span class="excerpt-dash">-</span> <span class="excerpt">' . get_the_excerpt() . '</span>';
409
 
410
  if( $include_content ) {
411
  add_filter( 'shortcode_atts_display-posts', 'be_display_posts_off', 10, 3 );
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.3
7
- Stable tag: 2.5
8
 
9
  Display a listing of posts using the [display-posts] shortcode
10
 
@@ -29,6 +29,10 @@ See the [WordPress Codex](http://codex.wordpress.org/Class_Reference/WP_Query) f
29
 
30
  == Changelog ==
31
 
 
 
 
 
32
  **Version 2.5**
33
 
34
  * Add support for date queries
4
  Tags: shortcode, pages, posts, page, query, display, list
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
+ Stable tag: 2.5.1
8
 
9
  Display a listing of posts using the [display-posts] shortcode
10
 
29
 
30
  == Changelog ==
31
 
32
+ **Version 2.5.1**
33
+
34
+ * Fix an issue with manually specified excerpts
35
+
36
  **Version 2.5**
37
 
38
  * Add support for date queries