#31397 closed defect (bug) (duplicate)
Bug in custom post type
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1.1 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
When show_id is false then this post type shows invalid post type. Every thing is correct only change to false from true you will show this error.
Attachments (2)
Change History (7)
#1
@
10 years ago
- Keywords reporter-feedback added
What is show_id
? Where does it show "invalid post type"? Is this new in 4.1.1, the version you selected?
#2
@
10 years ago
Oops! Sorry, it is show_ui not show_id. Latest code of the full plugin is attached again after editing all necessary codes. Install it and go to the following link. Than you will understand what i am saying. Thanks.
http://your-domain/wp-admin/post-new.php?post_type=assignment (working -- show_ui=true)
http://your-domain/wp-admin/edit.php?post_type=location (working)
http://your-domain/wp-admin/post-new.php?post_type=location (NOT working)
http://your-domain/wp-admin/edit.php?post_type=material (working)
http://your-domain/wp-admin/post-new.php?post_type=material (NOT working)
Note: this plugin creates four types of different custom post type location and material is two of them. Where show_ui is false. And show_ui is true for assignment custom post type which is working fine.
This file is not initialized. I initialized it using init action.