I'm new in wordpress, and I'm having some issues. I'm using wp to build a website, using the Exec-PHP plugin I'm coding custom pages with the editor.
My problem is that I have two php files with the html code in the theme directory, in my page(created in the editor) according some to validation I want to display one of those files.
Both php files have some calls to wp functions, but if I include them in the editor the page doesn't show the html, looking the page source i found this message "Call to undefined function get_template_directory_uri()".
If I include the wp-blog-header in those php files appears this message "failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in".
I'm new on both wp and php, and I don't have an idea of what to do, if I paste the code of the files directly on the editor everything works.
I can put and if in the editor to show the content I want, but I need use the files.
Thank for your time.