Hello,
2 Post categories (News, Sales)
1 page with the ALB element Masonry entries set to display only Sales category posts
if there are published Sales posts it works fine, but if there are no more published Sales posts it displays all News category posts instead of showing nothing
did someone allready noticed that ?
Regards
Hey comkapi,
This is intended behavior as normally you do not select unused terms when creating a page, the post__in parameter to return the posts from the selected category. If the category is empty, it will return all posts.
The Dev Team has provided this filter that you can add to your functions.php to show no items when the category is empty:
add_filter( 'avf_masonry_query_no_entries_fallback', true, $terms, $valid_terms );
Best regards,
Mike