I've got 30+ users and several custom post types.

  • Classes
  • Downloads
  • Parties
  • Events
  • etc

At the moment, I'm using author.php to display all these custom posts for that user, each post type in a loop, each hidden in a tab format.


I've been asked if there's a way of having each post type on it's on URL




Can this be done?


Anything can be done with URLs in WordPress... unfortunately not too easily a lot of the time. :)

It will probably be overkill to construct completely custom rewrite rules for that. Since you only have one extra variable/variation to the template it seems like handling it via endpoint (see add_rewrite_endpoint()) might be sufficient.

| improve this answer | |
  • Thanks for pointing that out to me, do you have any examples of endpoints in use? My research so far has only lead me to the core function, and not a custom one – Andrew Lazarus May 28 '14 at 9:28
  • @AndrewLazarus linked Codex documentation has link to pretty extensive blog post on endpoints – Rarst May 28 '14 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.