billerickson/display-posts-shortcode — pull request #19 by developer-geneian (2013-02-22 10:04:59+00:00)
Title: Adding some filter

line 62
'include_excerpt' => false,
'excerpt_length' => false,

line 90
$excerpt_length = (int)$atts['excerpt_length'];
$excerpt_more = sanitize_text_field($atts['excerpt_more']);

line 30
if ($listing->have_posts() )
add_filter('posts_request',create_function('$query','return str_replace("AND 0 = 1",\'\',$query);'));

line 245
if ( $include_excerpt )
$excerpt = ' - ' . get_the_excerpt() . '';
line 48
if( is_numeric($excerpt_length) ){
add_filter('excerpt_length',create_function('$a', 'return "'.intval($excerpt_length).'"; '));
}