Problem with custom post type
-
Dear guys,
I create a custom post type. i write below code into my theme function.php.
register_post_type('product', array( 'label' => 'Product', 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'product'), 'query_var' => true, 'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author', 'page-attributes'), 'has_archive'=> true, ) );
Custom post is add. i add a post as product. but my problem is that.
when i try view as “localhost/wordpress/index.php/product/” not found show.i also add “archive-product.php” on theme folder.
why my link not work. Please someone help me.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with custom post type’ is closed to new replies.