Created
March 24, 2022 06:22
-
-
Save carlaizumibamford/6348a43bc1667057fecb68c04587728f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Display posts with 20 comments: | |
$args = array( | |
'post_type' => 'post', | |
'comment_count' => 20, | |
); | |
$query = new WP_Query( $args ); | |
Display posts with 25 comments or more: | |
$args = array( | |
'post_type' => 'post', | |
'comment_count' => array( | |
'value' => 25, | |
'compare' => '>=', | |
) | |
); | |
$query = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment