Title: WordPress categories &#8220;mass edit&#8221;?
Last modified: August 19, 2016

---

# WordPress categories “mass edit”?

 *  [punkass](https://wordpress.org/support/users/punkass/)
 * (@punkass)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/)
 * Hey
    I have in my blog around 150 categories and on each category around 10-20
   posts. Now, Is there anyway to “mass edit” certain category and add to all of
   the posts under that category a text that will be displayed on all of the posts
   under that category? Or I need to go post by post manually and add it? Thanks!

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203756)
 * If it’s the same ‘text’ you could use the [Conditional Tag](http://codex.wordpress.org/Conditional_Tags)
   in_category() to determine if you should display the text. For example in a [post loop](http://codex.wordpress.org/The_Loop):
 *     ```
       <?php if (in_category('3') {
       echo 'If the category is 3 then display this text.  Might add this code right after the_content';
       ?>
       ```
   
 *  Thread Starter [punkass](https://wordpress.org/support/users/punkass/)
 * (@punkass)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203758)
 * Hey
    Thanks for the reply It’s not the same text. for each category is a diffrent
   text So that code you gave won’t work?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203761)
 * Just use different if statements for each category.
 *  Thread Starter [punkass](https://wordpress.org/support/users/punkass/)
 * (@punkass)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203932)
 * and where exactly I need to put this code?
    single-post.php ? when I tried to
   paste the code it gave me some php error and couldnt load the page
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203943)
 * Probably put that in a [category template](http://codex.wordpress.org/Category_Templates),
   but could be in an index.php or archive.php.
 * [The Loop](http://codex.wordpress.org/The_Loop) has examples.
 * Related:
    [Stepping Into Template Tags](http://codex.wordpress.org/Stepping_Into_Template_Tags)
   [Stepping Into Templates](http://codex.wordpress.org/Stepping_Into_Templates)
   [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)

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

The topic ‘WordPress categories “mass edit”?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-categoies-question/#post-1203943)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
