{"id":6760054,"date":"2015-11-18T04:43:38","date_gmt":"2015-11-18T04:43:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fatal-error-problem-adding-second-custom-post-type-to-functionsphp\/"},"modified":"2016-08-30T20:22:52","modified_gmt":"2016-08-30T20:22:52","slug":"fatal-error-problem-adding-second-custom-post-type-to-functionsphp","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fatal-error-problem-adding-second-custom-post-type-to-functionsphp\/","title":{"rendered":"Fatal Error: Problem Adding Second Custom Post Type to Functions.php"},"content":{"rendered":"<p>I&#8217;m working on a client site and making edits \u2013\u00a0I 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: <\/p>\n<p>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<\/p>\n<p>The &#8220;XXXXX&#8221; are in place for privacy reasons. <\/p>\n<p>I know I need to go back in and update as I can&#8217;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!<\/p>\n","protected":false},"template":"","class_list":["post-6760054","topic","type-topic","status-publish","hentry","topic-tag-custom-post-type","topic-tag-fatal-error","topic-tag-function-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6760054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6760054\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6760054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}