확실하지 :
<?php
/*
Plugin Name: Page 1 Post Type
Plugin URI:
Author:
Author URI:
Version: 0.1
Description:
License: GPL2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
function codex_custom_init() {
$labels = array(
'name' => 'Page 1s',
'singular_name' => 'Page 1',
'add_new' => 'Add New',
'add_new_item' => 'Add New Page 1',
'edit_item' => 'Edit Page 1',
'new_item' => 'New Page 1',
'all_items' => 'All Page 1s',
'view_item' => 'View Page 1',
'search_items' => 'Search Page 1s',
'not_found' => 'No Page 1s found',
'not_found_in_trash' => 'No Page 1s found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Page 1s'
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array('slug' => 'Page1'),
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => true,
'menu_position' => null,
'supports' => array('title', 'editor', 'revisions', 'page-attributes')
);
register_post_type('Page 1', $args);
}
add_action('init', 'codex_custom_init');
?>
퍼멀 링크 설정을 백엔드에 다시 저장하려고 했습니까? – Kortschot
또는 http://generatewp.com을 참조하십시오. 좀 더 많은 정보를 보여 주면 사람들은 더 나은 조언을 줄 수 있습니다. – Kortschot
@Kortschot 이것은 코어 퍼머 링크와 관련이 없습니다. 맞춤 영구 링크입니다. –