Title: undefined variable category
Last modified: August 20, 2016

---

# undefined variable category

 *  Resolved [Jay](https://wordpress.org/support/users/fectio1/)
 * (@fectio1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-category/)
 * undefined variable category. Im getting this error with debug turned on.
 *     ```
       elseif (is_archive()) {
       		         wp_title(''); echo $category[0]->cat_name . ''; }
       ```
   
 * Any suggestions? Thanks.

The topic ‘undefined variable category’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Jay](https://wordpress.org/support/users/fectio1/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-category/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
