Custom post type’s get_permalink returns wrong url

At what stage are you registering your post type? If it’s going right in the admin I’m thinking that you might be registering your post type too late. It has to be done on init to work…

Also, removing the 'pages'=>false might just fix it.

Leave a Comment