[wp-trac] [WordPress Trac] #13864: 'view' link on a custom post type wrong
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 12 08:27:17 UTC 2010
#13864: 'view' link on a custom post type wrong
----------------------------+-----------------------------------------------
Reporter: mattsains | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
I was testing custom post types with the following code in wp-
content/themes/twentyten/functions.php:
{{{
function create_my_post_types() {
register_post_type( 'super_duper',
array(
'labels' => array(
'name' => __( 'Super Dupers' ),
'singular_name' => __( 'Super Duper' )
),
'public' => true,
)
);
}
}}}
When I created a new post type, clicking the 'view' link on this post goes
to http://localhost/wordpress/blog/super_duper/new-super/ (which gives a
404), when it should go to http://localhost/wordpress/super_duper/new-
super/ (which works, without the "blog/"). I have visited the permalink
page to flush those. Refer to the screenshot to see where the link I'm
taking about is.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13864>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list