• This entry is under the category structure “gallery”->”specific artist name”
    https://tinyurl.com/ygassh

    Now, if you click “more info” you can click “view detail” which is an attachment for that entry. Or you can just go here: https://tinyurl.com/yn9lht

    You’ll notice that the header changes from the artist’s name to “Art News” which is a different category entirely. Any idea why it might be showing the wrong categoryy there? I’m just using <?php the_category('') ?> and switching to the default template shows the same error. Is there a way to specify which category an attachment is in? Shouldn’t it be the same as the entry that the attachment is tied to?

Viewing 1 replies (of 1 total)
  • Thread Starter buskerdog

    (@buskerdog)

    I “fixed” it by cross referencing the wp_posts, wp_categories, and wp_post2cat columns in PHPMyAdmin and changing them manually but that is a huge pain in the ass. Anyone have any insight into this?

Viewing 1 replies (of 1 total)
  • The topic ‘Attachment page displaying the wrong category…’ is closed to new replies.