Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Terms count includes Trashed and Draft Posts #421

Open
@timnicholson

Description

I used wp-cli to update the category and post_tag terms on my website and the counts included both deleted (trashed) posts as well as draft posts that have never been published.

Since the Categories List and Tag Cloud blocks are public-facing and display these counts, this is a really bad experience for the site visitors. It even lists counts in categories that don't have any actual published posts and when clicking on it, it displays an empty page with no posts.

Can this please be fixed? And in the meantime, is there any other way, via extra parameters or something, to get the posts count accurate?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /