I'm trying to build a new WordPress theme using register_post_type to create a custom post type called listings.
I would like each listing to have the following permalink structure:
I'm not quite sure how to achieve this with the CPT controls listed in the Codex. Previously, I have a achieved a similar effect by creating a custom structure in Permalink Settings:
It has been suggested on the main forum that I use wp_rewrite, but wp_rewrite only seems to deal with incoming requests and does not change the way CPT posts are created.
To illustrate further with an image, I want to change the /listings/ part of the permalink URL to the post author's name. See image below.