[wp-testers] Custom Post Types and Permalinks
Andrew Nacin
wp at andrewnacin.com
Mon Feb 14 02:32:16 UTC 2011
On Sun, Feb 13, 2011 at 9:25 PM, Jason Bobich <jason_bobich at hotmail.com>wrote:
>
> 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.
Your custom post type doesn't actually register any permalinks. The rewrite
flag is missing, and by default it is false. A link such as
?portfolio-item=blah might work, but /portfolio-item/blah will not.
More information about the wp-testers
mailing list