You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assets/inc/cpts/custom-type.php
+65-7Lines changed: 65 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ function myTheme_customPost() {
67
67
'capability_type' => 'post', // Used to build the read, edit, and delete capabilities.
68
68
// 'map_meta_cap' => false, // Whether to use the internal default meta capability handling.
69
69
'supports' => array( 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', 'custom-fields', 'post-formats' ), // Core feature(s) the post type supports. Add or remove as you require.
70
-
'has_archive' => true, // Whether the post type has an archive. If this is a string, this will be the archive slug. E.g. the single slug may be 'project', but the archive slug could be 'portfolio'.
70
+
'has_archive' => 'portfolio', // Whether the post type has an archive. If this is a string, this will be the archive slug. E.g. the single slug may be 'project', but the archive slug could be 'portfolio'.
71
71
'rewrite' => array( // Triggers permalinks for the page. Defaults to true, but can be set to false
72
72
'slug' => 'project', // Customises the slug to single posts
73
73
'with_front' => true, // Whether the posts should be prepended with WP_Rewrite::$front.
@@ -99,9 +99,9 @@ function myTheme_customTag() {
99
99
* A list of all available labels can be found at @link https://developer.wordpress.org/reference/functions/register_taxonomy/#arguments
100
100
*/
101
101
$labels = array(
102
-
'name' => _x( 'Categories', 'Taxonomy general name', 'zero-theme' ),
0 commit comments