Title: Featured category?
Last modified: August 20, 2016

---

# Featured category?

 *  [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/)
 * Like the featured image, is there a way to show a specific category the article
   is in?
 * For example, on the front page where it lists all the articles, maybe directly
   under the title or next to it, it would show a piece of text with a color coded
   background, the featured category.
 * This is not a widget, I dont want a block of text on my sidebar showing a list
   of categories that are popular.
 * You guys know what I mean?

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841216)
 * Yes, but that’s a theme sort of thing.
 * You can edit your CSS to show a different background if a post is in a certain
   category.
 *  Thread Starter [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841219)
 * I guess I’m not explaining it very well. This is what I would like to do:
 * > [View post on imgur.com](https://imgur.com/wseCk)
 * Where it says “Video” that would be the “featured category” and upon clicking
   it, you’d see all other posts in that category.
 * Yes it’s a theme sort of thing but, how are you supposed to get specific posts
   into those categories. Editing the theme every time you make a post is most definitely
   not the way to do it.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841220)
 * >  how are you supposed to get specific posts into those categories.
 * When you write the post, there’s a tool to add the post to a category right there.
 * See [http://codex.wordpress.org/images/b/b6/write1.png](http://codex.wordpress.org/images/b/b6/write1.png)
 * Lower right, where it says ‘Category’? You select the category 🙂
 * Then in your theme, you make the category a clickable link (which it is by default).
 *  Thread Starter [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841223)
 * I understand how to add a post into a category. What I’m trying to do, is show
   a “featured” category on the front page. Refer to my image. If a post has been
   selected to be in “Videos” as the featured category, it will show that green 
   tag on the front page next to the date and comments. However, if a post is selected
   to be in the videos category, but a different category as “featured” for example,
   maybe an Interview category, it would NOT have that videos tag, and instead have
   a “Interviews” tag next to the date and comments.
 * Do you get what I’m trying to do?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841224)
 * Yes, and I’m not handing you the answer outright to help lead you to think about
   what you’re asking 🙂 That way you start to see how all the pieces come together.
 * The easy part is to edit your CSS so that the tag for videos is in a special 
   color. Check out your source code for the page when rendered and you can see 
   what the classes are for that.
 * The other easy part is to assign it to a category.
 * The hard part is the code that you will have to write to say ‘If the category
   is video AND anything else, don’t show the video tag.’ But again, that can be
   coded.
 * Check out [http://codex.wordpress.org/Function_Reference/in_category](http://codex.wordpress.org/Function_Reference/in_category)
   for a start.
 *  Thread Starter [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841225)
 * “not handing you the answer outright” Then why are you answering threads in the“
   Support” forums?
 * I have extremely little knowledge of php let alone how wordpress works.
 * The tag for “Videos” isnt there on the page. It’s photoshopped in by me so I 
   can show you what I’m talking about.
 * It’s not just “video” tags. It’s multiple tags. If a post is placed in an “Interviews”
   category AS WELL AS a “videos” category, I want the writer to have the ability
   to CHOOSE which tag will appear on the front page.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841226)
 * To teach, of course! So you understand what you did, why it works, and how to
   modify it later, and don’t have to rely on strangers every time.
 * Notice how the more we get into this, the more complications you throw out there?
   Let’s stop 🙂 make a list of exactly what you need. It may not be possible, without
   hefty code, to get the ‘pick the featured category’ because that isn’t really
   how categories work, and we may need to come up with a different solution. Or
   you may need to use a custom post data.
 * I think, perhaps, we may want to stop using ‘featured categrory’ (which has a
   different meaning) and call this a ‘primary category.’
 * From what you’ve said, I understand your want as this: a way to select a specific
   category, per post, that will be the ‘highlit’ category.
 *  Thread Starter [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841227)
 * Yes indeed. I’ll start over.
 * You know how a lot of news sites put words such as [VIDEOS] or [OPINION] at the
   end of the title? My thought here is, remove those ugly words at the ends of 
   titles and instead place them somewhere visually pleasing. For example, that “
   tag” I posted a picture of. A small icon-ish image placed under the title. That
   way, you don’t have to ruin a good title with things like [INTERVIEW] at the 
   very end.
 * So for example, a writer has written a post about a video, lets say a game trailer.
   He starts to choose his categories. He chooses “PC” as a category because the
   trailer is for a PC game. Then, he chooses “Video” as a primary category to be
   placed as the tag on the front page (refer to the image I posted earlier.)
 * Now, we have a post that’s shown on the front page that has that nice green tag
   under the title saying “Video” instead of the ugly [VIDEO] at the end of the 
   title. Now, because he chose Video as the primary category, that’s why Video 
   is displayed on the front page and the category PC is only displayed inside the
   post itself, along with all other categories he might have chosen.
 * Is that a better explanation of what I’m trying to do?
 *  Thread Starter [Method320](https://wordpress.org/support/users/method320/)
 * (@method320)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841228)
 * And yes,
 * > a way to select a specific category, per post, that will be the ‘highlit’ category.
 * That is exactly what I’m looking for. And display on the front page, ONLY that
   category and none others.

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

The topic ‘Featured category?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [Method320](https://wordpress.org/support/users/method320/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/featured-category-2/#post-2841228)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
