Hello,
We have been tasked to create a paginated post grid that displays multiple post types and entries, is this possible out of the box?
I am trying masonry because it has pagination built in but I can only select one entry type. I was able to highlight more than one post type (posts and recipes) but then the entry type is a drop down and I am unable to select more than one (post_tag or recipe_tag)
Thank you
Hey finchkelsey,
Thank you for the inquiry.
This is possible but you will not be able to select custom taxonomies (categories, post tag), so every items in the selected post type/s will display.
To enable post type selection for the Masonry and Blogs Posts elements, please add this code in the functions.php file.
add_theme_support('add_avia_builder_post_type_option');
Then include this code to unset the taxonomy query.
function avia_unset_posts_taxonomy_query($query)
{
unset($query['tax_query']);
return $query;
}
add_filter('avia_masonry_entries_query', 'avia_unset_posts_taxonomy_query', 10, 1);
add_filter('avia_post_slide_query', 'avia_unset_posts_taxonomy_query', 10, 1);
Best regards,
Ismael