• Resolved melee-viii

    (@melee-viii)


    For my website I want to make use of the Custom Post Types functions and give these custom posts a different look. I made the custom post type with the following code in my functions.php:

    add_action('init', 'digest_register');
    
    	function digest_register() {
        	$args = array(
            	'label' => __('digest'),
            	'singular_label' => __('digest'),
            	'public' => true,
            	'show_ui' => true,
            	'capability_type' => 'post',
            	'hierarchical' => false,
            	'rewrite' => array( 'slug' => 'digest', 'with_front' => false ),
            	'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'thumbnail')
            );
    
        	register_post_type( 'digest' , $args );
    	}

    I have made a ‘single-digest.php’ but when I go to a post’s URL I see the homepage.

    Anyone that can tell me what I should do to make the single post page work?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom Post Types 'single-type.php' not working’ is closed to new replies.