0

I'm kind of new to wordpress. what I want to do is; For my home page I want to build URL like, www.example.com/email/abc@example.com and fetch value with email like

$wp_query->query['email']

but for other pages, my URL will be like www.example.com/dashboard etc.

Can I do it in wordpress? If yes, how can I do it? I want to do it with pretty permalinks.

0

I think it must be sort of:

echo home_url( 'email").'/'.$_GET['email'];

read more from https://codex.wordpress.org/Function_Reference/home_url

  • thanks for replying but it doesn't work. :( – Onkar May 12 '17 at 10:12

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.