Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Created May 27, 2019

Embed
What would you like to do?
register_post_type( ‘portfolio’,
array(
‘labels’ => array(
‘name’ => __( ‘Portfolio’ ),
‘singular_name’ => __( ‘Portfolio’ )
),
‘has_archive’ => true,
‘public’ => true,
‘rewrite’ => array(‘slug’ => ‘portfolio’),
'show_in_rest' => true,
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.