0
X
Add Snippet To Project
New Project
Add To Existing Project
$args = [
'post_type' => [ 'post' ],
'post_status' => [ 'published' ],
'category_name' => 'funny_videos',
'orderby' => 'rand',
];
// The Query
$my_query = new WP_Query( $args );