I'm trying to include an xml file in my WP site where you could go to a url, much like this one:


and view "thefile.xml" - no header, no footer, just the xml file.

I've been searching for ways to accomplish this for awhile now.

1 Answer 1


simply add as a link wherever you want.

<a href="www.example.com/somepage/anotherpage/thefile.xml">www.example.com/somepage/anotherpage/thefile.xml<a>

I have done the same here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.