Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 使用查询字符串重写自定义帖子类型的规则_Wordpress_Url Rewriting - Fatal编程技术网

Wordpress 使用查询字符串重写自定义帖子类型的规则

Wordpress 使用查询字符串重写自定义帖子类型的规则,wordpress,url-rewriting,Wordpress,Url Rewriting,我正在尝试让自定义重写正常工作: 我为“产品”的自定义帖子类型提供了以下URL模式: /au/product/product-name-one/?type=customtype1 /au/product/product-name-one/?type=customtype2 我正试图改写成: /au/product/product-name-one/customtype /au/product/product-name-one/customtype2 ==

我正在尝试让自定义重写正常工作:

我为“产品”的自定义帖子类型提供了以下URL模式:

/au/product/product-name-one/?type=customtype1

/au/product/product-name-one/?type=customtype2
我正试图改写成:

/au/product/product-name-one/customtype
/au/product/product-name-one/customtype2
==