maithemewp/mai-engine

Mai Term Grid not limiting Entries

Closed this issue · 7 comments

I am trying to create a list of the top 10 used tags using the Mai Term Grid Block for the mobile menu. However, it seems that the number of entries option is not working with tags as it brings back more than the set amount of tags. See screenshot.

To recreate the issue:

  1. Create a Mai Term Grid block.
  2. Set the following options:3.
    Taxonomy: Tags
    Get Entries By: Taxonomy
    Number of Entries: 10
    Offset: 0
    Order by: Entry Totals
    Order: Descending
    Exclude: Exclude terms with no posts

Mai Engine Version: 2.21.3
Wordpress Version: 6.0
2022-06-20_15-47-51

If you change the orderby setting, or uncheck "exclude terms with no posts" does it work correctly?

No, same issue
IMG_0727

Weird, I can't believe no one has hit this before. I see the issue here too. Seems like a bug but I'll dig in to confirm ASAP.

The Number setting is working when the Taxonomy is Categories. I'm not sure why though. I wonder if it's a hierarchical taxonomy thing.

@moyitpro This should be fixed in 2.21.4-beta.7. Can you give it a test? See https://help.bizbudding.com/article/202-beta-testing or run the beta branch here.

I confirmed that it's working now
2022-06-20_17-28-59
.

Great thanks. This will stay in for the next update.