Category Archives: CPT

1) Post Types

BUILT-IN POST TYPES

Label Post Type
Posts post
Pages page
Media attachment
Revisions revision
Navigation Menu Items nav_menu_item
Custom CSS custom_css
Changesets customize_changeset
oEmbed Responses oembed_cache

5) Has Archive

The argument has_archive enables post type archives. Will use $post_type as archive slug by default. Can also accept a string as its value.



6) Rewrite

The argument rewrite defaults to true and will use $post_type as slug unless customizing the permalink structure slug as in this example.

Note: Should be translatable.