Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix latest posts category filtering at frontend
  • Loading branch information
FlyNeko48 committed Nov 27, 2018
commit 567d7495a85d17a618fdcc501d13c13cc3c3d614
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function render_block_core_latest_posts( $attributes ) {
);

if ( isset( $attributes['categories'] ) ) {
$args['categories'] = $attributes['categories'];
$args['category'] = $attributes['categories'];
}

$recent_posts = wp_get_recent_posts( $args );
Expand Down