Support » Fixing WordPress » Display my custom post type

  • I have searched a solution for several days. I really need help now! I have tried to make a custom post type. I can see the post type in the panel and I can write a post BUT I can’t see the post when I click “show post”. The post isn’t there. It just shows the 404 not found page. I can see regular posts but not my custom post type. What is wrong?? I got the code from wordpress codex example.

    I wrote this in my functions file:

    add_action( 'init', 'create_post_type' );
    function create_post_type() {
    	register_post_type( 'acme_product',
    			'labels' => array(
    				'name' => __( 'Products' ),
    				'singular_name' => __( 'Product' )
    		'public' => true,
    		'has_archive' => true,

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Do you have a page with the same name as your custom post type?

    I’ve seen it where conflicts with register_post_type( 'news',

    The bottom line being that you can’t have a paged named the same as your custom post type.

Viewing 1 replies (of 1 total)
  • The topic ‘Display my custom post type’ is closed to new replies.