0

In WP 4.2 project I added new post_type using register_post_type function and taxonomy using register_taxonomy function and 2 categories using wp_insert_category function. That all works for me ok, but : 1) In list of these post_type there are only 2 fields visible "Title" and "Date". But I would like also to see the rest fields Author, Categories , Tags, which are usually visible in posts list. How to make it?

2) For this post_type I would like to keep these 2 categories unchangeble, and actually to make 2 categories of this post_type view only, not to add/delete/modify categories of this post_type. If there is way for this ?

2
  • When registering a new post type you can select which metaboxes you want it to show. See the codex codex.wordpress.org/Function_Reference/register_post_type - The argument you are looking for is called "supports".
    – gdaniel
    Jun 9, 2015 at 13:50
  • You will use custom_post_type UI plugin
    – user74481
    Jun 10, 2015 at 13:02

1 Answer 1

0

gdaniel, thank you for your reply, but actually I mean different : 1) show missing fields in my post_type listing

2) modify categories block, not to add/delete categories, but always show 2 existing categories, as they are constants for my post_type .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.