SEO Description Post Type
Post Type for cataloging SEO descriptions for re-use on market specific sites.
if ( ! function_exists('seo_writeups') ) { // Register Custom Post Type function seo_writeups() { $labels = array( 'name' => _x( 'Write-ups', 'Post Type General Name', 'headshophero' ), 'singular_name' => _x( 'Write-up', 'Post Type Singular Name', 'headshophero' ), 'menu_name' => __( 'SEO Write-Up', 'headshophero' ), 'name_admin_bar' => __( 'SEO Write-Up', 'headshophero' ), 'parent_item_colon' => __( 'Parent Write-up:', 'headshophero' ), 'all_items' => __( 'All Write-ups', 'headshophero' ), 'add_new_item' => __( 'Add New Write-up', 'headshophero' ), 'add_new' => __( 'Add Write-up', 'headshophero' ), 'new_item' => __( 'New Write-up', 'headshophero' ), 'edit_item' => __( 'Edit Write-up', 'headshophero' ), 'update_item' => __( 'Update Write-up', 'headshophero' ), 'view_item' => __( 'View Write-up', 'headshophero' ), 'search_items' => __( 'Search Write-up', 'headshophero' ), 'not_found' => __( 'Write-up Not found', 'headshophero' ), 'not_found_in_trash' => __( 'Write-up Not found in Trash', 'headshophero' ), ); $args = array( 'label' => __( 'seo-writeup', 'headshophero' ), 'description' => __( 'New SEO Write-up', 'headshophero' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => false, 'capability_type' => 'page', ); register_post_type( 'seo-writeup', $args ); } // Hook into the 'init' action add_action( 'init', 'seo_writeups', 0 ); }