I have a page in wordpress which shows all registered users in a table. When clicked on a user you’ll be redirected to their user page. Here is a sample:
echo '<tr onclick="location.href='/user/'.$slug.'/'"> <td>'.$result->firstname.' '.$result->lastname.'</td> </tr>';
Where $slug is retreived from the database. I have a page with permalink
. So if I click on a user I get redirected to a link
Which doesn’t show anything because it’s obviously a non existent sub page. I’ve tried something like $_GET in the permalink but wordpress doesn’t allow that. How do I fix this?
Read more here: Variable string in wordpress page permalink