Title: Posts in multiple categories problem
Last modified: August 18, 2016

---

# Posts in multiple categories problem

 *  [endofamnesia](https://wordpress.org/support/users/endofamnesia/)
 * (@endofamnesia)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/)
 * I’m currently working on a site that will be an online shop selling CDs/vinyl
   for a small record label.
 * I’ve created a category structure along the lines of the following:
 * **Catalogue (default category)**
    – Artist 1 – Artist 2 – Artist 3 etc **Format**–
   CD – 7″ Vinyl etc **Special Offers** – 50% off – 10% off etc
 * So you see that an album will be in multiple categories.
 * For example: _Artist 1, CD, 10% off_
 * Now on the sidebar.php I’d like to be able to put ‘Other items by the same artist’.
   This would pull out, say 4 items
    from the same artist category as the item being
   viewed (but not show anything from the other categories the post is in)
 * I really cant think of a way to do this. Can anybody help me out?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/#post-323528)
 * Is “Artist1” a subcategory of Catalog? I mean if it’s a category, then probably
   you can use any of the solutions suggested in this thread by katie1 and Kafkaesqui.
   
   [http://wordpress.org/support/topic/57698?replies=4](http://wordpress.org/support/topic/57698?replies=4)
 *  Thread Starter [endofamnesia](https://wordpress.org/support/users/endofamnesia/)
 * (@endofamnesia)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/#post-323537)
 * Yes all artists are subcategories of Catalgoue.
 * What’s puzzling me how I would display the lastest posts from
    _only_ the artist
   category they are in…on individual posts.
 * If I just show latest posts that are children of ‘Catalogue’ then it wont show
   _only_ the latest posts from Artist 1, it would display any posts from artist
   2, artist 3, etc.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/#post-323551)
 * Show only the latest posts from the category ‘artist1’.
 *  Thread Starter [endofamnesia](https://wordpress.org/support/users/endofamnesia/)
 * (@endofamnesia)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/#post-323555)
 * Surely if I put code that says ‘show only latest posts from artist1’ on the sidebar
   then for each post it will only show the latest post in artist1.
 * What i really need is that to dynamically change…so youre viewing a post that
   has been put in
 * _artist1, CD Album, 10% off_
 * then the side bar shows ‘other posts in artist1’ category.
    Of if youre looking
   at a post that has been put in
 * _artist26, Vinyl album_
 * then the sidebar shows ‘other posts in artist26’ category.

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

The topic ‘Posts in multiple categories problem’ is closed to new replies.

## Tags

 * [multiple](https://wordpress.org/support/topic-tag/multiple/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [endofamnesia](https://wordpress.org/support/users/endofamnesia/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/posts-in-multiple-categories-problem/#post-323555)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
