Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi I am trying to create a custom post type display page but for some reason the page is not working and I get sent to the 404.php.Here is my code:

add_action('init' , 'business_manager_register');

function  business_manager_register(){
    //add custom post type
    $args = array(
        'label' => 'Business Managers',
        'singular_label' => 'Business',
        'public' => true,
        'shouw_ui' => true,
        'capability_type' => 'post',
        'hierarchical' => true,
        'has_archive' => true,
        'supports' => array('title','editor','thumbnail'),
        'rewrite' => array('slug' => 'businesses' , 'with_front' => false)
    );

    register_post_type('businesses' , $args);
}

Now in order to display it I have created the file archive-businesses.php.Accoding to the slug I added the link should be something like this:

link/businesses But when I try link to it I get the 404 error same thing happenes for the single-businesses.php.What am I doing wrong here?

share|improve this question
    
Have you tried - This solution –  amit Aug 17 '12 at 19:32
    
@user985482 How about the rest of the custom type? Are you able to create business manageers and go to those based on the permalink in the edit screen? –  fdsa Aug 18 '12 at 21:50
add comment

1 Answer 1

up vote 1 down vote accepted

go here /wp-admin/options-permalink.php and save your permalink structure.

if it does not work - check your slugs again

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.