Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Landing Page

if ( ! function_exists('ctm_landing_page') ) {

// Register Custom Post Type
function ctm_landing_page() {

	$labels = array(
		'name'                  => _x( 'Landings Pages', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Landing Page', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Landing Page', 'text_domain' ),
		'name_admin_bar'        => __( 'Landin Page', 'text_domain' ),
		'archives'              => __( 'Archivos LP', 'text_domain' ),
		'attributes'            => __( 'Atributos', 'text_domain' ),
		'parent_item_colon'     => __( '', 'text_domain' ),
		'all_items'             => __( 'Todas las Landing', 'text_domain' ),
		'add_new_item'          => __( 'Añadir Landing', 'text_domain' ),
		'add_new'               => __( 'Nueva Landing', 'text_domain' ),
		'new_item'              => __( 'Nueva Landing', 'text_domain' ),
		'edit_item'             => __( 'Editar Landing', 'text_domain' ),
		'update_item'           => __( 'Actualizar Landing', 'text_domain' ),
		'view_item'             => __( 'Ver Landing', 'text_domain' ),
		'view_items'            => __( 'Ver Landing', 'text_domain' ),
		'search_items'          => __( 'Buscar Landing', 'text_domain' ),
		'not_found'             => __( 'No encontrado', 'text_domain' ),
		'not_found_in_trash'    => __( 'No encontrado en la Papelera', 'text_domain' ),
		'featured_image'        => __( 'Imagen Destacada', 'text_domain' ),
		'set_featured_image'    => __( 'Aplicar imagen destacada', 'text_domain' ),
		'remove_featured_image' => __( 'Borrar imagen destacada', 'text_domain' ),
		'use_featured_image'    => __( 'Usar como imagen destacada', 'text_domain' ),
		'insert_into_item'      => __( 'Insertar en Landing', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Subirlo a la Landing', 'text_domain' ),
		'items_list'            => __( 'Lista de Landings', 'text_domain' ),
		'items_list_navigation' => __( 'Lista de Navegacion', 'text_domain' ),
		'filter_items_list'     => __( 'Filtrar lista Landings', 'text_domain' ),
	);
	$capabilities = array(
		'edit_post'             => 'edit_landing',
		'read_post'             => 'read_landing',
		'delete_post'           => 'delete_landing',
		'edit_posts'            => 'edit_landing',
		'edit_others_posts'     => 'edit_others_landing',
		'publish_posts'         => 'publish_landing',
		'read_private_posts'    => 'read_private_landing',
	);
	$args = array(
		'label'                 => __( 'Landing Page', 'text_domain' ),
		'description'           => __( 'Landing Page para publicidad', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes' ),
		'hierarchical'          => true,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-share-alt2',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => false,
		'has_archive'           => false,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capabilities'          => $capabilities,
	);
	register_post_type( 'lp', $args );

}
add_action( 'init', 'ctm_landing_page', 0 );

}