WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.