0
I have a post type created, but it does not show the url editor of the created page, someone could tell where I declare that in the post type will have a field to edit the url?
0
I have a post type created, but it does not show the url editor of the created page, someone could tell where I declare that in the post type will have a field to edit the url?
0
I imagine you’re talking about the permalink editor like this?
If yes, it depends on the "title" option being present in the array supports
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 );
Browser other questions tagged wordpress
You are not signed in. Login or sign up in order to post.