Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1333244

    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

    #1333394

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Masonry entries show bad category’ is closed to new replies.