Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In WP-admin Categories are not shown in Posts #64552

Closed
kspilarski opened this issue Jun 11, 2022 · 16 comments
Closed

In WP-admin Categories are not shown in Posts #64552

kspilarski opened this issue Jun 11, 2022 · 16 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Categories & Tags Categories and tags for posts and other custom post types. [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Pri] Normal Schedule for the next available opportuinity. [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended wp-admin

Comments

@kspilarski
Copy link

Quick summary

In WP-admin, Categories are not shown in Posts. Bulk deletion and bulk editing are affected.

Steps to reproduce

  1. Assign posts to any category.
  2. Go to WP-admin > Posts
  3. Under Bulk Actions, select Edit then Apply
  4. The posts that are assigned to a category don't show that they are already in that category.

What you expected to happen

The categories the posts are assigned to are displayed.

What actually happened

The posts assigned to categories don't show which category they belong to.

Context

Customer report: 5289034-zd and self-testing.

In my test site, these three posts are in Desserts and Drinks categories:

Screen Shot 2022-06-11 at 4 19 53 PM

In WP-admin > Posts > Bulk edit posts don't show that these posts are in Desserts and Drinks categories. I can't tell which category they belong to.

Screen Shot 2022-06-11 at 4 21 38 PM

In WP-admin Posts, even I filter the posts by category (example: desserts category), desserts category box is not ticked. I am unable to remove posts from these categories:

Screen Shot 2022-06-11 at 4 33 07 PM

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

Firefox 101, macOS 12.4

Reproducibility

Consistent

Severity

All

Available workarounds?

Yes, easy to implement

Workaround details

To delete the category in all posts, go to Posts > Categories and delete the category completely.

To delete certain posts in the category, open the post one by one and remove the category from that post.

@kspilarski kspilarski added [Type] Bug When a feature is broken and / or not performing as intended [Pri] Normal Schedule for the next available opportuinity. User Report Needs triage Ticket needs to be triaged labels Jun 11, 2022
@sstabrizi
Copy link

sstabrizi commented Jun 15, 2022

Another report in 35810422-hc.

I'd add one more related issue. When looking under Posts > (Click Post Title) > Categories, the same behavior happens as above. If you select a category, as soon as Update is clicked, the category is removed from the editor, but the post still shows in the category feed. This also means it's not possible to uncategorize a post.

I tried disabling all user-installed plugins to see if was plugin related, and it did not do anything. This fits with the above description that this was happening on atomic and simple sites when it was reported.

@sstabrizi sstabrizi added [Pri] High Address as soon as possible after BLOCKER issues and removed [Pri] Normal Schedule for the next available opportuinity. labels Jun 15, 2022
@renata-franco
Copy link

📌 HOUSEKEEPING

  • Labels ✅
  • Priority ✅
  • Replicable on Core - Yes

📌 SCRUBBING

  • Tested on P2 ✅
  • Tested on Simple ✅
  • Tested on AT ✅
  • Tested on Self-hosted ✅

📌 FINDINGS/SCREENSHOTS/VIDEO

I was able to replicate the categories issue on Simple, AT, and Self-Hosted. The selected posts to edit in bulk do not appear in the categories they already have assigned, none of them, actually.

Regarding the second comment about this happening also with the pages that @sstabrizi left I am not sure what they meant, as the Pages do not have Categories.

As for a workaround, there is no other way to edit the Categories in bulk natively.

Simple Site

image

AT Site

image

Self-Hosted Site

image

📌 ACTIONS

  • Marked as Triaged for Quality Squad review.

@sstabrizi
Copy link

sstabrizi commented Jun 16, 2022

Regarding the second comment about this happening also with the pages that @sstabrizi left I am not sure what they meant, as the Pages do not have Categories.

Just updated my comment above. I meant Posts > (Click Post Title) > Categories (not pages). What I was trying to say was it's not just the bulk or quick edit that doesn't work. It's also not working when you categorize from the post editor. Here are some screenshots:

Before clicking Update

Markup 2022-06-16 at 11 09 51

After clicking Update

Markup 2022-06-16 at 11 10 13

@renata-franco
Copy link

Oh, thanks @sstabrizi. Can you please create a new bug for that other one?

@sstabrizi
Copy link

Sorry, now I'm confused. This seems to be the same issue, and the behavior is just showing in two different places. Surely the same issue is at the root of both of these, no?

@renata-franco
Copy link

I checked with one of my colleagues, @sstabrizi and we will let the developers decide if this should be a different bug as one is happening in Calypso and the other one in WP-admin. In the meantime, thank you so much for sharing the screenshots!

@kuropixel
Copy link

Adding the ticket for previously reported 35810422-hc:
5301111-zen

They'd like to be notified when the bug is fixed.

@cometgrrl cometgrrl added the [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. label Jul 1, 2022
@cometgrrl
Copy link
Contributor

I checked with one of my colleagues, @sstabrizi and we will let the developers decide if this should be a different bug as one is happening in Calypso and the other one in WP-admin. In the meantime, thank you so much for sharing the screenshots!

We should start with filing a core bug as getting that fixed may solve both issues.

@mrfoxtalbot
Copy link

mrfoxtalbot commented Jul 4, 2022

I can replicate the initial/main issue (let's call it "Issue A") but it took me a while to understand it. Another more descriptive title might be "Bulk editing multiple posts will not list all the relevant categories". I would strongly suggest including a short video recording whenever possible to make it easier to understand.

Screen.Capture.on.2022-07-04.at.11-32-04.mov

@sstabrizi I am not able to replicate what you describe (let's call it "Issue B"). Could you please confirm that you are still able to replicate this on a wpcom simple site and/or on a self-hosted site with no plugins and Twenty Twenty-Two active? There is a short video illustrating what I am seeing on my end:

Screen.Capture.on.2022-07-04.at.11-28-02.mp4

Thank you for adding the Core Fix Needed tag @cometgrrl!

I found that this is being discussed in this trac issue. There has been a patch in place ready to ship for about 18 months at this point but I am not sure what is causing the delay to deploy. Are you familiar with this issue @priethor, @annezazu?

@kcswong
Copy link

kcswong commented Sep 18, 2022

Encountered this in 36697186-hc, tested in both WP Admin and Calypso.
Follow-up ticket: 5566734-zen

@github-actions
Copy link

github-actions bot commented Sep 18, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 5289034-zen
  • 5301111-zen
  • 5566734-zen
  • 6233188-zen
  • 6243650-zen
  • 7089123-zen

@kspilarski
Copy link
Author

Same case in 6233188-zd.

@jp-imagines
Copy link

Another report in 6243650-zd-woothemes.

@caitlindawn
Copy link

Another case in 7089123-zd.

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Sep 28, 2023
@cuemarie
Copy link

cuemarie commented Oct 5, 2023

https://core.trac.wordpress.org/ticket/11302 was closed 9 days ago with a fix that pre-fills post categories either with a checked checkbox, or a line indicating an indeterminate status, when bulk editing posts - that hasn't reached my self-hosted or dotcom sites yet, but it appears that is on it's way.

📌 ACTIONS

  • Due to the age of this issue, I've downgraded the priority from High to Normal to better reflect its status as waiting on that Core update.

@cuemarie cuemarie added Triaged To be used when issues have been triaged. [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Pri] Normal Schedule for the next available opportuinity. and removed Needs triage Ticket needs to be triaged [Pri] High Address as soon as possible after BLOCKER issues labels Oct 5, 2023
@cuemarie cuemarie added the [Feature] Categories & Tags Categories and tags for posts and other custom post types. label Oct 5, 2023
@mrfoxtalbot
Copy link

I retested this and I can confirm it is fixed (All relevant categories are listed when editing posts in bulk).

Screenshot 2024-09-02 at 14 11 33

@mrfoxtalbot mrfoxtalbot moved this to Fixed in Core in Dotcom Core Fix Needed Sep 2, 2024
@mrfoxtalbot mrfoxtalbot moved this from Fixed in Core to Still Relevant in Dotcom Core Fix Needed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Categories & Tags Categories and tags for posts and other custom post types. [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Pri] Normal Schedule for the next available opportuinity. [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended wp-admin
Development

No branches or pull requests

10 participants