admin管理员组文章数量:1327288
I built a dynamic page template that pulls biography information from a MySQL table.
The page works fine but the URL is ugly.
Officer-Biography/?ID=1
I have a set of canonical slugs that I want to use for each officer.
for example, Officer-Firstname-Lastname
I've tried both htacess and add_rewrite_rule and both give me 404.
example: add_rewrite_rule('Officer-Erich-Abberger', 'Officer-Biography/?ID=1', 'top');
What am I missing?
本文标签: functionsHow Can I Create a Friendly Slug for a Dynamic Page
版权声明:本文标题:functions - How Can I Create a Friendly Slug for a Dynamic Page? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742207352a2433065.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论