Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Locato Business Listing

Locato is business listing Wordpress plugin which allows creating business directory listing for vagarious niche.

// Register Custom Post Type
function locato_wp_business_listing() {

	$labels = array(
		'name'                => _x( 'Business Lisitings', 'Post Type General Name', 'eng_language' ),
		'singular_name'       => _x( 'Business Lisiting', 'Post Type Singular Name', 'eng_language' ),
		'menu_name'           => __( 'Business Listing', 'eng_language' ),
		'parent_item_colon'   => __( 'Parent Listing:', 'eng_language' ),
		'all_items'           => __( 'All Listings', 'eng_language' ),
		'view_item'           => __( 'View Listing', 'eng_language' ),
		'add_new_item'        => __( 'Add New Listing', 'eng_language' ),
		'add_new'             => __( 'Add New', 'eng_language' ),
		'edit_item'           => __( 'Edit Listing', 'eng_language' ),
		'update_item'         => __( 'Update Listing', 'eng_language' ),
		'search_items'        => __( 'Search Listing', 'eng_language' ),
		'not_found'           => __( 'Not found', 'eng_language' ),
		'not_found_in_trash'  => __( 'Not found in Trash', 'eng_language' ),
	);
	$rewrite = array(
		'slug'                => 'post_type',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'buiness_lisitng', 'eng_language' ),
		'description'         => __( 'Locato is business listing Wordpress plugin which allows creating business directory listing for vagarious niche.', 'eng_language' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'page-attributes', 'post-formats', ),
		'taxonomies'          => array( 'category', 'options', ' area', ' city', ' state', ' country', ' post_tag', ' email_template', ' setting' ),
		'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,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'buiness_lisitng', $args );

}

// Hook into the 'init' action
add_action( 'init', 'locato_wp_business_listing', 0 );