Created
August 26, 2013 13:21
-
-
Save hokuma/6341341 to your computer and use it in GitHub Desktop.
wordpressのURLカスタマイズ ref: http://qiita.com/halhide/items/9a1ac15164edb92991a9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_rewrite_rule('カスタム投稿名/([^/]+)(/([^/]+))?/?$','index.php?カスタム投稿名=$matches[1]&xxxpage=$matches[3]','top'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_query( $query_args ) { | |
$query_args[] = "xxxpage"; | |
return $query_args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment