How to activate a link editor for a created post type?

Asked

Viewed 37 times

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?

1 answer

0


I imagine you’re talking about the permalink editor like this? inserir a descrição da imagem aqui

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

You are not signed in. Login or sign up in order to post.