creating custom wordpress posts twenty fourteen
-
hey, I’m using twenty fourteen and attempting to create custom post types. I’m following this guide and have added the code below to my functions php file and nothing is happening, I really don’t understand what is going wrong!
// Creates Movie Reviews Custom Post Type function movie_reviews_init() { $args = array( 'label' => 'Movie Reviews', 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'movie-reviews'), 'query_var' => true, 'menu_icon' => 'dashicons-video-alt', 'supports' => array( 'title', 'editor', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'thumbnail', 'author', 'page-attributes',) ); register_post_type( 'movie-reviews', $args ); } add_action( 'init', 'movie_reviews_init' );
Any help would be greatly appreciated!
Many thanks,
UrbanFix
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘creating custom wordpress posts twenty fourteen’ is closed to new replies.