I have a post type created but it does not show the url editor of the created page, could someone tell me where I declare that in the post type will have a field to edit the url?
I have a post type created but it does not show the url editor of the created page, could someone tell me where I declare that in the post type will have a field to edit the url?
I imagine you're talking about the permalinks editor like that?
Ifyes,itdependsonthe"title" option being present in the supports
array when you create the Post Type:
ex.:
<?php
$args = array(
'labels' => $labels,
/* todas as outras opções */
'supports' => array(
'title', 'editor', 'author', 'thumbnail'
),
);
register_post_type( 'slug', $args );