Media Category doesn't query images like a Post Category

Hi everyone,
I’m trying to wrap my head around Media Categories, is this exclusively an admin feature?

An image of people working was uploaded and assigned to my test media category and it does not display on the front end. If I’m assigning a category to an image my expectation is that it would perform similarly to a post category from its archive index, was that not the intent?

Screenshot of the dashboard for the image Werk.

It was built as a feature to assist primarily with organizing uploaded files, so yes it’s an admin feature by default. I haven’t considered how it might work with archive pages, but that’s an interesting point.

Thinking about this now, archive pages won’t work with it if they are expecting a post type of post. Have you tried specifying the relevant post type as attachment?

I haven’t, that’s a good idea. I will create a child theme in the next few days and test it out. Thanks for the suggestion.

1 Like

What led me to presume a media archive exists is the “view” hyperlink within any media category’s dashboard. However, it appears the attachment post type might not be set to appear on the front end, at least not for an archive, I can’t seem to grab any kind of loop from fiddling with archive.php in a child theme. I’ll keep at it.

They should display by default in certain circumstances. See Post Types – Theme Handbook | Developer.WordPress.org

correct, and they do, just not as part of a post archive despite using the taxonomy of a custom post type in the dashboard.
linked from that page. Attachment Template Files – Theme Handbook | Developer.WordPress.org