0

I am trying to redirect my wordpress page . This code is working good.

<a href="'. get_permalink('dashboard') .'" class="wpum-profile-account-edit">'. __(' (Edit Account)', 'wpum') .'</a>

But I am trying to redirect with page value " dashboard/?dashboard=myprofile" .But this code is not working

<a href="'. get_permalink('dashboard/?dashboard=myprofile') .'" class="wpum-profile-account-edit">'. __(' (Edit Account)', 'wpum') .'</a>  
-1

Use this code and check<a href="'. get_permalink('dashboard') .'?dashboard=myprofile" class="wpum-profile-account-edit">'. __(' (Edit Account)', 'wpum') .'</a>. In get_permalink() function you can only pass the post ids or page titles to get the page url but you have added additional parameters with that so it was not getting the correct url. So I have edited the code to append the extra parameters after the function.

| improve this answer | |
  • Please edit your answer, and add an explanation: why could that solve the problem? – fuxia Jul 25 '17 at 10:35

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.