Title: Custom post types meta fields problem
Last modified: August 19, 2016

---

# Custom post types meta fields problem

 *  [goatlady](https://wordpress.org/support/users/goatlady/)
 * (@goatlady)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/custom-post-types-meta-fields-problem/)
 * I have created a custom post type with additional fields (books, for a web site
   for a children’s author) and it all works well: creates, edits, deletes etc.
 * However, I’m now playing around with adding more functionality (taxonomies, new
   types etc), and every time I re-upload my functions.php file all the extra data
   in the postmeta table for my custom type gets wiped out.
 * I’ve tested it pretty well and I’m sure the new functions.php is triggering the
   issue. Apart from being annoying while developing, I can see this being an issue
   in future if we ever want to make any modifications to the site once it’s fully
   populated with data.
 * Is this intended functionality, a known issue, or is there something wrong with
   the way I’m writing the code? If I were to create my custom types a different
   way (as a plugin perhaps?) would I avoid this problem?
 * Any advice greatly appreciated 🙂

Viewing 1 replies (of 1 total)

 *  [Dan Cameron](https://wordpress.org/support/users/dancameron/)
 * (@dancameron)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-post-types-meta-fields-problem/#post-1706837)
 * bump

Viewing 1 replies (of 1 total)

The topic ‘Custom post types meta fields problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Dan Cameron](https://wordpress.org/support/users/dancameron/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/custom-post-types-meta-fields-problem/#post-1706837)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
