【发布时间】:2010-03-25 23:39:11
【问题描述】:
这里(一年多前)有人问过这个问题,但显然没有回答,而且 WordPress 一直在发展,所以现在也许有一个很好的解决方案。我想通过 url 将变量传递给 WordPress 页面(类似于 CodeIgniter uri helper 段)。
目前我可以做到这一点...
我的个人资料页面是: http://website.com/profile
我可以像这样传递一个变量: http://website.com/profile?username=johndoe
我想像这样传递变量: http://website.com/profile/johndoe 或者 http://website.com/profile/username/johndoe
必须有某种辅助函数,对吧?
【问题讨论】:
标签: wordpress