custom page template code produces parse error
-
I am making a custom template page with code that writes out an XML file that is used in a slideshow.
I have the code working outside of WordPress. I am now trying to get it to operate inside WordPress as a custom template.
$topoffile = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<juiceboxgallery\n\n\timportCaption=\"IPTC\"\n\timportTitle=\"NONE\"\n\n>\n\n";
The above variable definition, which will be the header of the XML file, produces the following error:
Parse error: syntax error, unexpected ‘version’ (T_STRING) in …..
Here is the link:
- The topic ‘custom page template code produces parse error’ is closed to new replies.