📜  wordpress wp_query orderby random - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.230000             🧑  作者: Mango

代码示例1
$args = array(
    'category_name'  => 'cat1',
    'posts_per_page' => 5,
    'orderby'        => 'rand',
);

$pc = new WP_Query( $args );