Listings
Real Estate Listings
// Register Custom Post Type function listings_post_type() { $labels = array( 'name' => _x( 'Listings', 'Post Type General Name', 'pw-listings' ), 'singular_name' => _x( 'Listing', 'Post Type Singular Name', 'pw-listings' ), 'menu_name' => __( 'Listings', 'pw-listings' ), 'parent_item_colon' => __( 'Parent Item:', 'pw-listings' ), 'all_items' => __( 'All Listings', 'pw-listings' ), 'view_item' => __( 'View Listing', 'pw-listings' ), 'add_new_item' => __( 'Add New Listing', 'pw-listings' ), 'add_new' => __( 'Add Listing', 'pw-listings' ), 'edit_item' => __( 'Edit Listing', 'pw-listings' ), 'update_item' => __( 'Update Listing', 'pw-listings' ), 'search_items' => __( 'Search Listings', 'pw-listings' ), 'not_found' => __( 'Not found', 'pw-listings' ), 'not_found_in_trash' => __( 'Not found in Trash', 'pw-listings' ), ); $args = array( 'label' => __( 'listings', 'pw-listings' ), 'description' => __( 'Real Estate Listings', 'pw-listings' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'listings', $args ); } // Hook into the 'init' action add_action( 'init', 'listings_post_type', 0 );