-
-
Save delias/9dd9e872c15803fecee1a25cf407ecb0 to your computer and use it in GitHub Desktop.
This file contains 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 chaplains_init() { | |
global $wp,$wp_rewrite; | |
$wp_rewrite->add_rule('chaplains/([0-9]{4})/?$', | |
'index.php?pagename=mypage&id=$matches[1]', 'top'); | |
// $wp_rewrite->flush_rules(false); | |
} | |
add_action('init','chaplains_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment