Type Alias: CustomPostType
CustomPostType =
object
Defined in: packages/core/src/types.ts:3
Properties
archive?
optionalarchive:string
Defined in: packages/core/src/types.ts:7
endpoint
endpoint:
string
Defined in: packages/core/src/types.ts:5
matchSinglePath?
optionalmatchSinglePath:boolean
Defined in: packages/core/src/types.ts:20
Whether this custom post type should match the archive path
If set to true, then when querying a post type archive page such as /[post-type]/[post-name] the
post.link property should match the current path. This will avoid matching nested posts/pages that doesn't exist for instance:
/[post-type]/fake-parent-page/[post-name] will not match if this option is set to true even though post-name exists.
It is strongly recommended to set this option to true, otherwise hierarchical post types (such as pages) will not work properly.
Default
true
single?
optionalsingle:string
Defined in: packages/core/src/types.ts:6
slug
slug:
string
Defined in: packages/core/src/types.ts:4