Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'wpse26388_rewrites_init' );
- function wpse26388_rewrites_init(){
- add_rewrite_rule(
- 'properties/([0-9]+)/?$',
- 'deal.php?pagename=single-deal&property_id=$matches[1]',
- 'top' );
- }
- add_filter( 'query_vars', 'wpse26388_query_vars' );
- function wpse26388_query_vars( $query_vars ){
- $query_vars[] = 'property_id';
- return $query_vars;
- }
Add Comment
Please, Sign In to add comment