Give a permalink to Custom Post Types without title

I have no idea how to give a reasonable permalink.

Give it a title. You don’t have to use the title for anything but the permalink, and it will be used in the page title as well most likely but since it is already exposed in the permalink I don’t see the harm. You never have to print it anywhere else if you don’t want to. Not to be ornery, but that is the obvious solution and then everything more or less falls into place.

‘title’ is not something you can easily opt out of. How do you identify the reports on the “edit” screen for example? Those should probably all say “auto-draft” too, right? Or something pretty close? The page title– on this page it looks like “plugin development – Give a permalink to …”– is usually set to the post title or derived from it. That bit shows up in most search engine results so you really need a decent title there if this is going to be exposed to the public. If you weren’t looking to have the permalinks it would be different. You’d need to write your own interface to view the reports but at least some of the problems would not occur.

If you really want to, you could probably set the slug manually by hooking into the save_post filter and that might get a decent permalink. I don’t think it will help with the admin screen though or with the page title. You should also be able use the slug the slug in the admin edit panel, but that is more code to write.

Please reconsider your decision not to use the title. That decision is costing you a fair bit of work, and I can’t see the benefit.