WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] A problem with 'register_post_type'

[Resolved] A problem with 'register_post_type'

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] A problem with 'register_post_type'’ is closed to new replies.