WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] A problem with 'register_post_type' (4 posts)

  1. szkin
    Member
    Posted 3 years ago #

    I'm register a new post type

    register_post_type('job', array( 'label' => 'job', 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false,
    	 'rewrite' => array('slug' => 'job'),

    when i add a new post "test" on this post type.
    The url http://xxx.com/job/test/ can display.

    But url http://xxx.com/job getting a 404!.

    I want to show all job post in http://xxx.com/job .
    what can i do. Thanks.

  2. Thejas Kamath
    Member
    Posted 3 years ago #

    http://yoursite.com/job/test/ is the permanent link to the post. you cannot show the posts in http://yoursite.com/job/ unless you create a redirect from your website Cpanel.

  3. szkin
    Member
    Posted 3 years ago #

    thank you for your answer.

  4. Thejas Kamath
    Member
    Posted 3 years ago #

    Your welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags