Title: Fatal Error: Problem Adding Second Custom Post Type to Functions.php
Last modified: August 30, 2016

---

# Fatal Error: Problem Adding Second Custom Post Type to Functions.php

 *  [kfowlerdesign](https://wordpress.org/support/users/kfowlerdesign/)
 * (@kfowlerdesign)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/)
 * I’m working on a client site and making edits – I copied and pasted exactly the
   same code for as the first one (and forgot to rename) and have now received this
   fatal error and can no longer access the WP-admin panel:
 * Fatal error: Cannot redeclare custom_post_type() (previously declared in /home/
   XXXXX/public_html/wp-content/themes/concierge/functions.php:45) in /home/XXXX/
   public_html/wp-content/themes/concierge/functions.php on line 183
 * The “XXXXX” are in place for privacy reasons.
 * I know I need to go back in and update as I can’t reuse the same function name.
   However, this is a custom theme, and I need to know HOW can I get back the WP-
   admin and remove the second post code to restore the site back to its previous
   state? HELP!

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

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/#post-6760145)
 * It’s never a good idea to use the built in minimal WordPress file editor. Use
   FTP with a good text editor to edit files. See [Filezilla](http://filezilla-project.org/)
   and [FTP Clients « WordPress Codex](http://codex.wordpress.org/FTP_Clients).
 *  Thread Starter [kfowlerdesign](https://wordpress.org/support/users/kfowlerdesign/)
 * (@kfowlerdesign)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/#post-6760148)
 * Thank you songdogtech! This may sound crazy (as I’m new at this), but could I
   just locate this: /home/XXXX/public_html/wp-content/themes/concierge/functions.
   php on line 183 within the host’ cpanel and remove the second post code to reverse
   it?
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/#post-6760149)
 * Sure, you can use the Cpanel file browser, if your Cpanel has one.
 *  Thread Starter [kfowlerdesign](https://wordpress.org/support/users/kfowlerdesign/)
 * (@kfowlerdesign)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/#post-6760151)
 * I’ll have to see if it does – waiting for client login to hosting site.

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

The topic ‘Fatal Error: Problem Adding Second Custom Post Type to Functions.php’
is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [kfowlerdesign](https://wordpress.org/support/users/kfowlerdesign/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-problem-adding-second-custom-post-type-to-functionsphp/#post-6760151)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
