Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pass shortcode attributes to listing class filter

  • Loading branch information...
commit 5391383d37f2fb0f0f1285910489968d332d898e 1 parent 300ca33
Bill Erickson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 display-posts-shortcode.php
4 display-posts-shortcode.php
View
@@ -3,7 +3,7 @@
* Plugin Name: Display Posts Shortcode
* Plugin URI: http://www.billerickson.net/shortcode-to-display-posts/
* Description: Display a listing of posts using the [display-posts] shortcode
- * Version: 2.3.1
+ * Version: 2.3.2
* Author: Bill Erickson
* Author URI: http://www.billerickson.net
*
@@ -240,7 +240,7 @@ function be_display_posts_shortcode( $atts ) {
$content = '<div class="content">' . apply_filters( 'the_content', get_the_content() ) . '</div>';
$class = array( 'listing-item' );
- $class = apply_filters( 'display_posts_shortcode_post_class', $class, $post, $listing );
+ $class = apply_filters( 'display_posts_shortcode_post_class', $class, $post, $listing, $original_atts );
$output = '<' . $inner_wrapper . ' class="' . implode( ' ', $class ) . '">' . $image . $title . $date . $excerpt . $content . '</' . $inner_wrapper . '>';
// If post is set to private, only show to logged in users
Please sign in to comment.
Something went wrong with that request. Please try again.