I did try flushing re-write rules. As I said, I even went to the extent of installing a fresh WordPress 3.1RC4 on a new db, and all I did was install my theme, turn on permalinks, and create a post (using the custom post type). I did this on both my live web server and on my local machine (using MAMP). Same thing happens.
> From: [email protected] > Date: Sun, 13 Feb 2011 21:10:27 -0500 > To: [email protected] > Subject: Re: [wp-testers] Custom Post Types and Permalinks > > On Sun, Feb 13, 2011 at 9:02 PM, Jason Bobich <[email protected]>wrote: > > > > > I'm not sure if this is a bug with 3.1 or if I'm just doing something > > incorrectly. I'm having issues with permalinks and custom post types in 3.1 > > RC. > > > > I have a custom post type in my theme, and everything works fine in 3.0.x. > > However in all 3.1 RC versions so far, when I turn on Permalinks, all of my > > custom post type pages and taxonomy pages come up with a 404 not found. > > > > At first, I assumed it was just that my local dev database was just > > cluttered with stuff and who knows what was going on. However, I just > > installed a completely fresh installation of WordPress 3.1-RC4 on my live > > web server, activated my theme, turned permalinks on, created one of the > > custom post type items, and get the 404 error again when trying to view the > > post. I verified that standard pages and posts come up just fine (meaning > > permalinks work, just not with the custom post type). > > > > This is how I'm registering my custom post type: > > > > register_post_type('portfolio-item', array( > > 'label' => __('Portfolio Items', 'themeblvd'), > > 'singular_label' => __('Porfolio Item', 'themeblvd'), > > 'public' => true, > > 'show_ui' => true, > > '_builtin' => false, > > 'capability_type' => 'page', > > 'hierarchical' => false, > > 'supports' => array('title', 'excerpt', 'editor', 'thumbnail', > > 'comments'), > > 'menu_icon' => get_bloginfo('template_url') . > > '/framework/theme_options/layout/images/icon_portfolio.png' > > )); > > > > Does anyone know if this is a bug? Or is something I could be doing > > incorrectly to why upgrading from 3.0.x to 3.1 RC would cause this to > > happen? > > > > Thanks in advance! > > Jason > > > > Have you tried flushing your rewrite rules? This needs to occur on plugin > activation, or by hitting the Settings > Permalink screen. > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
