I'm writing a plugin to do some specific business logic - edit records for authenticated users, etc.
Rather than having the overhead of a form processing plugin that uses stuff in template tags. I've created a rewrite do redirect like:
/mylisting/909 ->/wp-content/themes/myplugin/edit.php?id=909
Which seems to make sense as I'm keeping the very specific logic to an individual plugin.
The problem is, I want to use my theme within my plugins files as they'll be output in the site's frontend and as such I want them to have the same look and feel.
So I've tried get_header(); include('../mytheme/header.php')
As well as including wp-load.php
...None of which work (I get fatal errors)
Any help?