I want to load some of the pages(not wordpress page, a template file other than wordpress’s default template file) according to the url came on the address bar.
for instance, I have page in my template file ie my_account.php to show my profile pic and other informations from to my wordpress pofile. and it is placed in my defaut theme folder
/themes/mytheme/my_account.php
When the url is http://mysite/MyAccount/
then I need to load the above page.
Something like if http://mysite/register/
then load the register.php from my theme folder.
I’m using custome permalinks option. http://mysite/hello_world_post/
So How can I configure and load the template according to the url, how to controll this by using a plugin.
You should be able to use template_redirect. I haven’t tested it though, should be something like this.
See this: http://codex.wordpress.org/Pages#Templates_by_page-ID_or_page-Slug
The easiest is by slug. For example if your http://mysite/register/ slug is register then create a custom page template page-register.php.
BTW, I didn’t know you can use _ for permalink? Plugin?