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