Answer the question
In order to leave comments, you need to log in
How to implement child posts to posts in wordpress?
I registered a taxonomy, for example, this one:
register_post_type( 'kosmetologiya',
array(
'labels' => array(
'name' => __( 'Косметология' ),
'singular_name' => __( 'Косметологические процедуры' )
),
'public' => true,
'has_archive' => true,
'add_new' => 'Добавить процедуру',
'menu_position' => 5,
'supports' => array('title', 'editor', 'thumbnail', 'post-formats', 'excerpt', 'custom-fields' ),
)
);
Answer the question
In order to leave comments, you need to log in
Registration parameters should be like this
register_post_type( 'kosmetologiya',
array(
'labels' => array(
'name' => __( 'Косметология' ),
'singular_name' => __( 'Косметологические процедуры' )
),
'public' => true,
'has_archive' => true,
'add_new' => 'Добавить процедуру',
'menu_position' => 5,
'hierarchical' => true,
'supports' => array('title', 'editor', 'thumbnail', 'post-formats', 'excerpt', 'custom-fields', 'page-attributes' ),
)
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question