How to activate link editor of a created post type?

0

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?

    
asked by anonymous 17.10.2016 / 18:12

1 answer

0

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 );
    
19.10.2016 / 15:12