我有以下URL结构:
http://localhost/wordpress/gallery?id=331
id
指定id
该职位的。gallery
是一个普通页面,我正在访问其中的id
并使用WP_Query()
.
我想将此页面的URL替换为:
http://localhost/wordpress/topic/place/new-delhi/gallery?id=331
其中参数place
和new-delhi
可能在多个其他选项中有所不同topic
是保持不变的关键字。我试过用一些没用的.htaccess
文件代码。
有人能帮忙吗?