我认为这很简单。我从这里得到参考:https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
$findNumber = 150;
$args = array(
\'posts_per_page\' => -1,
\'post_type\' => \'photos-videos\',
\'meta_query\' => array(
\'relation\' => \'AND\',
array(
\'key\' => \'max_number\',
\'value\' => $findNumber,
\'type\' => \'NUMERIC\',
\'compare\' => \'>=\'
),
array(
\'key\' => \'min_number\',
\'value\' => $findNumber,
\'type\' => \'NUMERIC\',
\'compare\' => \'<=\'
)
)
);
// query
$the_query = new WP_Query( $args );
有意义吗?