I’m writing a plugin which requires a special webpage. I would like it to be accessible via some friendly URL, like http://myblog/do-something/. How do I set it up?
The way I’m doing it now is
a) creating a category “do-something”
b) creating a template file category-XXX.php (where XXX is the ID of the category I create)
c) enter the HTML & PHP code that calls the plugin and does what it is supposed to do in this new file.
I know it’s a dirty hack and there must be a way to do it nicely, but I could not find any valuable hints how to do so in the online help pages about templates.
- The topic ‘How to add a new PHP file accessible via a friendly URL?’ is closed to new replies.