I want to know how can I dynamically change the page a user is taken to when they select a URL....using wordpress user metadata fields?
My users have either selected "male" or "female" as their gender in their profile and the value is stored in a mysql database in the "usermeta" table.
And I have created 2 pages:
www.example/male
www.example/female
Is there a way to use a current logged in user's metadata field value in a URL to send them to the correct page?
meta_key = "user_gender"
www.example/"user_gender"
Is this possible in wordpress?
Please help!
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744942198a4602395.html
评论列表(0条)