how can I code in the following code into a wordpress site without the code causing an error with the php coding thanks.
<?xml version="1.0" encoding="utf-8" ?>
how can I code in the following code into a wordpress site without the code causing an error with the php coding thanks.
<?xml version="1.0" encoding="utf-8" ?>
One way is to include it in the last line of your php file as
echo '<?xml version="1.0" encoding="utf-8" ?>';
There's also probably a better way that someone will point out.
You can (depending on the server setup) try disabling PHP short tags. You can either do this in your .htaccess file by inserting this line:
php_value short_open_tag 0
Or by using the PHP ini_set function
ini_set ('short_open_tag', 0);