I have created an XML files that use the same database as WordPress but largely non-WordPress content. I have had these XML files work as RSS feeds on an external domain, but would like to bring this inside of WordPress.
I've created 4 custom feed-name.php templates, include my code and added them to WordPress with the filters etc. they currently return no content because I am unable to access WordPress's functions or my classes in my mu-plugins.
My code includes include('./wp-load.php');
which should allow access to WordPress's functions and my own, but this isn't working.
Have i missed something?
note: including get_header();
breaks the page because it includes loads of html that doesn't validate as xml.
p.s. no custom-template tag?