Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#31397 closed defect (bug) (duplicate)

Bug in custom post type

Reported by: lutond Owned by:
Priority: normal Milestone:
Component: Posts, Post Types Version: 4.1.1
Severity: normal Keywords:
Cc: Focuses:

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)

post.types.php (3.2 KB ) - added by lutond 12 years ago.
This file is not initialized. I initialized it using init action.
custom-post-type-4.1.1.php (3.1 KB ) - added by lutond 12 years ago.
Second upload - edited

Download all attachments as: .zip

Change History (7)

@lutond
12 years ago

This file is not initialized. I initialized it using init action.

#1 @helen
12 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 @lutond
12 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.

@lutond
12 years ago

Second upload - edited

#3 @lutond
11 years ago

  • Resolutioninvalid
  • Status newclosed

#4 @TobiasBg
11 years ago

  • Milestone Awaiting Review

#5 @SergeyBiryukov
11 years ago

  • Keywords reporter-feedback removed
  • Resolution invalidduplicate

Duplicate of #22214.

Note: See TracTickets for help on using tickets.