Skip to main content

Type Alias: CustomTaxonomy

CustomTaxonomy = object

Defined in: packages/core/src/types.ts:27

Properties

endpoint

endpoint: string

Defined in: packages/core/src/types.ts:29


matchArchivePath?

optional matchArchivePath: boolean

Defined in: packages/core/src/types.ts:42

Whether this custom taxonomy should match the archive path

If set to true, then when querying a taxonomy archive page such as /[taxonmy-slug]/[term-slug] the term.link property should match the current path. This will avoid matching nested categories that doesn't exist for instance: /[taxonmy-slug]/fake-parent-term/[term-slug] will not match if this option is set to true even though term-slug exists.

Default

false

restParam?

optional restParam: string

Defined in: packages/core/src/types.ts:31


rewrite?

optional rewrite: string

Defined in: packages/core/src/types.ts:30


slug

slug: string

Defined in: packages/core/src/types.ts:28