Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'sportflash_rewrites_init' );
- function sportflash_rewrites_init(){
- add_rewrite_rule(
- '([^/]*)/([^/]*)/([^/]*)/([^/]*)/page/([^/]*)?',
- 'index.php?category_name=$matches[1]&sport=$matches[2]&sex=$matches[3]&age=$matches[4]&paged=$matches[5]',
- 'top'
- );
- add_rewrite_rule(
- '([^/]*)/([^/]*)/([^/]*)/([^/]*)/?',
- 'index.php?category_name=$matches[1]&sport=$matches[2]&sex=$matches[3]&age=$matches[4]',
- 'top'
- );
- add_rewrite_rule(
- '([^/][^klubovi]*)/([^/]*)/?',
- 'index.php?category_name=$matches[1]&sport=$matches[2]',
- 'top'
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement