Title: Post Type
Last modified: August 21, 2016

---

# Post Type

 *  [mrspabs](https://wordpress.org/support/users/mrspabs/)
 * (@mrspabs)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/post-type-4/)
 * Hi
    I used the below code to make a custom post type
 *     ```
       if ( ! function_exists( 'post_type_entry' ) ) :
   
       function post_type_entry() {
   
       	register_post_type(
       		'entry',
       		array(
       			'label' => __('Entry Pages'),
       			'description' => __('Create an Entry Page.'),
       			'public' => true,
       			'show_ui' => true,
       			'has_archive' => true,
       			'capability_type' => 'post',
       			'rewrite' => array(
         			'slug' => 'pages' // This controls the base slug that will display before each term
         		),
       			'supports' => array (
       				'title',
       				'editor',
       				'thumbnail',
       				'excerpt',
       				'custom-fields',
       				'revisions',
                                       'page-attributes'
       			)
       		)
       	);
       }
       endif;
   
       add_action('init', 'post_type_entry');
       add_theme_support( 'post-thumbnails', array( 'post','entry' ) );
       ```
   
 * I would like for the user to be able to choose the parent page and the template
   like they can on pages. How do I do that?

The topic ‘Post Type’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mrspabs](https://wordpress.org/support/users/mrspabs/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/post-type-4/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
