Skip to content

Commit

Permalink
limit visibility to readable posts
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Sep 22, 2017
1 parent de56c79 commit e7faaa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion display-posts-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function be_display_posts_shortcode( $atts ) {
'category_name' => $category,
'order' => $order,
'orderby' => $orderby,
'perm' => 'readable',
'post_type' => explode( ',', $post_type ),
'posts_per_page' => $posts_per_page,
'tag' => $tag,
Expand Down Expand Up @@ -428,7 +429,7 @@ function be_display_posts_shortcode( $atts ) {
} elseif ( $include_date_modified ) {
$date = ' <span class="date">' . get_the_modified_date( $date_format ) . '</span>';
}

if( $include_author )
/**
* Filter the HTML markup to display author information for the current post.
Expand Down

0 comments on commit e7faaa2

Please sign in to comment.