Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter tbp278

    (@tbp278)

    Sorry, I should have mentioned that:

    Normal posts weren’t working, but I’ve figured that out and they’re all good, it’s just custom post types that 404 now

    Thread Starter tbp278

    (@tbp278)

    I’ve studied Justin’s article from top to bottom over the last few days and can’t find what I’m doing wrong.

    I’ve tried adding:

    add_action('init', 'post_type_videos');
    
    function post_type_videos() {
        $args = array(
            'label' => __('Videos'),
            'singular_label' => __('Video'),
            'public' => true,
            'show_ui' => true,
            'hierarchical' => false,
    		'rewrite' => array( 'slug' => 'video', 'with_front' => false ),
            'supports' => array('title', 'thumbnail', 'editor')
            );
    
        register_post_type( 'videos' , $args );
    
    }

    but to no avail…

Viewing 2 replies - 16 through 17 (of 17 total)