Title: Adding Custom Post Types with Metaboxes using PHP in theme
Last modified: September 1, 2016

---

# Adding Custom Post Types with Metaboxes using PHP in theme

 *  [twentyfourdegrees](https://wordpress.org/support/users/twentyfourdegrees/)
 * (@twentyfourdegrees)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/adding-custom-post-types-with-metaboxes-using-php-in-theme/)
 * Hi there,
    I already read a lot about custom post types, metaboxes and such, 
   but I’m still not sure so:
 * When I install my WordPress theme, I want it automatically add several Custom
   Post Types with various fields AND metaboxes to edit them. So, there will be 
   php involved.
 * What is the best way to implement this and if you have any links to decent tutorials,
   can you please provide them here?
 * thanks

The topic ‘Adding Custom Post Types with Metaboxes using PHP in theme’ is closed
to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [twentyfourdegrees](https://wordpress.org/support/users/twentyfourdegrees/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/adding-custom-post-types-with-metaboxes-using-php-in-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
