Last active
June 8, 2017 09:17
-
-
Save mrbobbybryant/e28efc0d84afbead7d0e to your computer and use it in GitHub Desktop.
WordPress Custom Post Type (Simple)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dwwp_register_post_type() { | |
$args = array('public'=> true, 'label'=> 'Staff'); | |
register_post_type( 'staff', $args); | |
} | |
add_action( 'init', 'dwwp_register_post_type' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment