Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Add Custom Post Type */
- add_action( 'init', 'create_vicinity_cpt' );
- function create_vicinity_cpt() {
- register_post_type( 'attractions',
- array(
- 'labels' => array(
- 'name' => __( 'Attractions' ),
- 'singular_name' => __( 'Attraction' ),
- 'add_new' => __( 'Add New Attractions' ),
- 'add_new_item' => __( 'Add New Attraction' ),
- 'edit' => __( 'Edit Attractions' ),
- 'edit_item' => __( 'Edit Attraction' ),
- 'new_item' => __( 'Add New Attraction' ),
- 'view' => __( 'View Attractions' ),
- 'view_item' => __( 'View Attraction' ),
- 'search_items' => __( 'Search Vicinity' ),
- 'not_found' => __( 'No Attractions Found' ),
- 'not_found_in_trash' => __( 'No Attractions found in Trash' ),
- 'menu_name' => 'Vicinity'
- ),
- 'description' => __('Attractions to be shown in Vicinity section.'),
- 'public' => true,
- 'show_ui' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => false,
- 'show_in_menu' => true,
- 'menu_position' => 21,
- 'supports' => array( 'title', 'editor', 'thumbnail' ),
- 'can_export' => true,
- 'hierarchichal' => false,
- 'capability_type' => 'post'
- )
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement