• Resolved owcv

    (@owcv)


    Since one of the last updates of Connections I experienced a strange behaviour. Some of my categories are shown with “0 entries” but there are entries in it.

    Also the counting seems to be wrong. When I go to “Connections” > “Categories” and look under the “Count” column, I have e.g. one Category with 2 entries, but when I click on that number, 11 entries are loaded.

    This also has side effects on Connections shortcodes used, when I set for example “show_empty_categories” to FALSE, I can’t see of course certain entries.

    Is there something wrong with the category counting?

    https://ww.wp.xz.cn/plugins/connections/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    @ owcv

    Counting has changed in 8.2 which brings it closer alignment with how WordPress deals with category counts.

    Only entries and are “approved” (not in the moderation queue) and are not “unlisted” are counted. WordPress for example does not count drafts and trashed posts in the category counts.

    So it can be very likely that the count column can be less than what is shown when the manage page when filtered by a category.

    The counts are currently only updated as entries are added/edited. When an entry is added/edited, any categories that were selected for that entry will have their counts updated.

    Hope that helps to clear up how category counts work now.

    Thread Starter owcv

    (@owcv)

    I tested it your right, so this might be an issue with the Connections CSV Importer, that doesn’t update the category count, unless I update the entries manually.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ owcv

    No, counts should be updated in a CSV import too. Which versions of Connections and CSV Import are your using?

    Thread Starter owcv

    (@owcv)

    Connections 8.2.2 and CSV Import 1.1

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ owcv

    The current version of VSB Import is 1.2… regardless, 1.1 can core Connection all use the exact same function to add categories relationships and part of that process is to update counts.

    I just ran a quick test… importing three test entries without categories, all were assigned to “Uncategorized” as they should be. I then Imported another three with categories and they were assigned correctly to those categories with the counts being increased as they should be.

    In short, I’m not able to replicate the issue in my dev install of WP. I’d need a closer look at yours.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Non-empty categories shown as empty’ is closed to new replies.