diff --git a/display-posts-shortcode-remote.php b/display-posts-shortcode-remote.php index acf2327..70879c6 100644 --- a/display-posts-shortcode-remote.php +++ b/display-posts-shortcode-remote.php @@ -253,7 +253,7 @@ if ( ! class_exists( 'Display_Posts_Remote' ) ) { $url = trailingslashit( $atts['url'] ) . 'wp-json/wp/v2/posts'; $url = add_query_arg( '_embed' , '', $url ); - if ( ! empty( $atts['category_id'] ) ) { + if ( ! empty( $atts['category_id'] ) && ( is_array( $atts['category_id'] ) || false !== filter_var( $atts['category_id'], FILTER_VALIDATE_BOOLEAN ) ) ) { if ( is_array( $atts['category_id'] ) ) {