最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

user meta - Dynamic URL based on user_metadata

programmeradmin3浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论