How do I create an extra post page in wordpress [closed]

0

I want to keep my post page but add a new post section called destinations, attached image.

    
asked by Carlos Agaton 22.11.2017 в 05:10
source

1 answer

0

As I understand you, you need to create a Custom Post Type.

To do this you can paste this into your functions.php file of your template. If you need to know how to improve this custom type you can check the wordpress codex link

function create_posttype () {

register_post_type( 'destinos',
        array(
            'labels' => array(
                'name' => __( 'Destinos' ),
                'singular_name' => __( 'Destino' )
            ),
            'public' => true,
            'has_archive' => true,
            'rewrite' => array('slug' => 'destinos'),
        )
    );
}

add_action( 'init', 'create_posttype' );
    
answered by 22.11.2017 / 20:00
source