wordpress リライト処理

function myUrlRewrite( $rules ) { $newRules = array(); $newRules['^performance/([^/]+)/?$'] = 'index.php?area=$matches[1]'; $newRules['^performance/([^/]+)/?$'] = 'index.php?worktype=$matches[1]'; $newRules['^performance/([^/]+)/?$'] = 'index.php?data=$matches[1]'; $newRules['^performance/([^/]+)/?$'] = 'index.php?foge=$matches[1]'; return $newRules + $rules; } add_filter( 'rewrite_rules_array', 'myUrlRewrite' );

全てのりな糸が動いて欲しいです

コメントを投稿

0 コメント