Title: Adding content to specific Categories
Last modified: August 22, 2016

---

# Adding content to specific Categories

 *  [Sergio Scabuzzo](https://wordpress.org/support/users/seedsca/)
 * (@seedsca)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-content-to-specific-categories/)
 * Fistly, I know enough to break things, and sometimes do what I want.
 * I am attempting to have 3 versions a table with links under #main show up depending
   on the category.
 * The table would be a set of icons with links that are pertinent to the category
   and would be placed imediately above the page’s content.
 * Not sure how to wrangle this one. Maybe edit the archive.php file? An awesome
   plugin, or?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-content-to-specific-categories/#post-5806945)
 * There could be a plugin, but I don’t know of one. I don’t know much about available
   plugins.
 * To custom code something, yes, you would edit a template file, but which one 
   is theme dependent. See [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   for an overview of what templates do what. You’ll see that if your theme does
   not have a category.php template, archive.php is used, if that is even available.
 * Even if your theme does not have a category.php template, you could create one,
   and it should be used for all category queries. You can see from the article 
   that you can even create a template for a specific category term if need be.
 * If you were to use a generic template like archive.php, you’d need a conditional
   structure to only do something for category queries, something like:
 *     ```
       if ( is_category()) {
          //output category specific stuff
       }
       ```
   
 * The good thing about editing templates is if you do something wrong, the worst
   that happens is all pages based on the template will be broken. If you were to
   do something wrong in plugin code, it could possibly bring down the entire site!.
   In general, it’s best to have a local test installation so you can fully debug
   code before it goes live on a production site. Or at least have a separate online
   test installation that’s hidden from the general public.

Viewing 1 replies (of 1 total)

 The topic ‘Adding content to specific Categories’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-content-to-specific-categories/#post-5806945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
