FacetWP – recent posts for a specific post format

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

$args = [
‘posts_per_page’ => 10,
‘tax_query’ => [
[
‘taxonomy’ => ‘post_format’,
‘field’ => ‘slug’,
‘terms’ => ‘post-format-link’
]
]
];
$recentPosts = new WP_Query( $args );

{{/gist}}