How to create manual url
-
Hello!
I try to create manual link in WP but i don`t get it.So, i need to create http://www.sampleblog.com/scores/ link and it should use /wp-content/themes/mytheme/scores.php file including all theme only changing content with this scores.php.
How to do that?
I try to add these lines in theme functions.php but it doesn`t work:
add_rewrite_tag(‘%scores%’,'([^&]+)’);
add_rewrite_rule(“^scores/(.+)$”, “scores.php”, “top”);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘How to create manual url’ is closed to new replies.