How to pass URL variables into a WordPress page
- by mikemick
This has been asked on here (over a year ago), but apparently not answered, and WordPress is always evolving so maybe theres a good solution now. I want to pass variables to a WordPress page via the url (similar to CodeIgniter uri helper segments).
Currently I can do this...
My profile page is:
http://website.com/profile
I can pass a variable like this:
http://website.com/profile?username=johndoe
I want to pass the variable in like this:
http://website.com/profile/johndoe
There has to be some sort of helper function, right?