[Resolved] WP Rewrite for custom template files
When I have something in my site that is completly out of the wordpress template hierarchy, I usually parse the URL and then hook into the template_redirect filter to change what template file should be used based on the url. For example when I want mysite.com/project to use projects.php file in my folder.
I was wondering If a could do this using WP Rewrite class, taking advantage of the built in redirects for paged items and feeds…
All the examples Ive seen using the wp rewrite class will only change the query string variable sent to the index.php, but will do nothing concerning to choosing the appropriate template file.
Wonder if anyone has any tips
- The topic ‘[Resolved] WP Rewrite for custom template files’ is closed to new replies.