Im trying to include the wordpress header and footer in a non wordpress php file.
i used <?php include 'filepath' ?>
and im getting Fatal error: Call to undefined function language_attributes().
i checked the header file, and this is what i find on the specified line:
<html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml">
if this unspecified language attribute is a fatal error, why does it work in wordpress?
after trying to include functions.php i get other errors
what do i need to include to get this to work?