开发者

Custom permalink in WP

开发者 https://www.devze.com 2023-03-28 15:41 出处:网络
How to archive theURL rew开发者_运维知识库rite from example.com/?special=25 to example.com/special/25.Check out the WordPress WP Rewrite class. The examples towards the bottom look like they\'d get wh

How to archive the URL rew开发者_运维知识库rite from example.com/?special=25 to example.com/special/25.


Check out the WordPress WP Rewrite class. The examples towards the bottom look like they'd get what you are trying to achieve. Sadly not used this before so can't provide an example.


Without any more context to the question, it's a little difficult to say; however, based on the URL scheme that you've provided, 'special' appears to be a category, custom post type, or some other taxonomy.

If that's the case, then you can use a custom permalink setting set to: /%postname%/ and that would take care of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消