views:

53

answers:

2

Hi All,

Was wondering if anyone had any smart approaches to creating dynamic vanity user urls upon user registration. My site basically uses emails as usernames. I have the regex to strip the text before the "@" symbol (e.g. "[email protected]" becomes "name") I would then like to take the "name" and create a vanity url (e.g. domain.com/name or name.domain.com)

Any thoughts on how to accomplish this with Wordpress? I'm a pretty advanced Wordpress user and my first thoughts were to do the following

  1. Verify user registration
  2. Upon successful user registration create page name with username as the title (this would help me achieve the www.domain.com/username)
  3. Apply preset template to that page with the desired view

Any and all thoughts are welcome.

+2  A: 

Check out the wordpress author slug plugin, it seems to do (almost exactly) that?

futtta
A: 

I actually figured this out on my own. Just create a post like you normally would and but set the post type to page. Hope this helps someone out there.

st4ck0v3rfl0w