Title: PHP code not working in functions.php child theme file
Last modified: August 21, 2016

---

# PHP code not working in functions.php child theme file

 *  [IAmTam](https://wordpress.org/support/users/iamtam/)
 * (@iamtam)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-code-not-working-in-functionsphp-child-theme-file/)
 * Hi, I would LOVE to be using this plugin. But when I paste the php code into 
   my child theme’s blank function.php file, it doesn’t work. The site goes down.
 * Do I need to add something else to the file? Perhaps the beginning and ending
   php tags? (<?php and ?>) I actually already tried this too and it also didn’t
   work.
 * Any advice?
 * Thanks!
 * [http://wordpress.org/plugins/custom-post-type-generator/](http://wordpress.org/plugins/custom-post-type-generator/)

The topic ‘PHP code not working in functions.php child theme file’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-post-type-generator_719fc1.
   svg)
 * [Custom Post Type Generator](https://wordpress.org/plugins/custom-post-type-generator/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-generator/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [IAmTam](https://wordpress.org/support/users/iamtam/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/php-code-not-working-in-functionsphp-child-theme-file/)
 * Status: not resolved