Custom post type – order field
When declaring your custom post type using the register_post_type function, you have to add ‘page-attributes’ to the support field, like in the following example:
1 2 3 4 | register_post_type('myposttype', array( 'supports' => array('title', 'editor', 'page-attributes'), 'hierarchical' => false )); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.