[wp-testers] 3.1 Custom post types problems.

Andrew Nacin wp at andrewnacin.com
Mon Feb 28 02:53:22 UTC 2011


On Sat, Feb 26, 2011 at 1:23 AM, Andrew Johnson <andrew at difted.com> wrote:

> Using fresh install, no plugins and I can't see the  "Edit Post" in my
> custom post types and my rewrites never work for the permalink generated. I
> can access via the /projects/post-name url but the permalink still generates
> as /post-name. Here is my code:
>
>             'capabilities' => array('edit_post', 'read_post',
> 'delete_post','edit_posts','edit_others_posts'),


That is wrong. Remove it and it works for me. That array accepts
capabilities like this:

array( 'edit_post' => 'my_edit_post', ... );

For your rewrites to work, flush your rewrite rules by visiting Settings >
Permalink.

Nacin


More information about the wp-testers mailing list