[英]Rewrite link category wordpress
How to make rewrite link category in wordpress. 如何在wordpress中重写链接类别。
http://example.com/orenda-avto?car=econom replace on http://example.com/orenda-avto/econom http://example.com/orenda-avto?car=econom替换http://example.com/orenda-avto/econom
add_action( 'init', 'add_mypage_rule' );
function add_mypage_rule(){
add_rewrite_tag("%car%", '(\d+)');
add_rewrite_rule('^orenda-avto/([^/]*)/?','index.php?cat=22&car=$matches[1]','top');
}
And how change title and description on site after get request? 以及如何在收到请求后在网站上更改标题和描述?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.