Created
April 10, 2015 12:46
-
-
Save newbiethetest/b84a376248785a12105e to your computer and use it in GitHub Desktop.
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 custom_rewrite_basic() { | |
| global $wp_rewrite; | |
| add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top'); | |
| $wp_rewrite->flush_rules(); | |
| } | |
| add_action('init', 'custom_rewrite_basic'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment