How to pass URL variables into a WordPress page

Posted by mikemick on Stack Overflow See other posts from Stack Overflow or by mikemick
Published on 2010-03-25T23:39:11Z Indexed on 2010/03/25 23:43 UTC
Read the original article Hit count: 351

Filed under:

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?

© Stack Overflow or respective owner

Related posts about Wordpress