Support » Fixing WordPress » Parsing XML with PHP Include

  • I’m having an odd issue with a PHP script that’s grabbing data from an XML file.

    Outside of WordPress (both in a separate directory and simply linking directly to the PHP file in the template directory), the script works fine. It simply displays random XML data on each page refresh.

    Once I include the PHP inside of my WordPress template, the XML data isn’t being brought in. It’s including the PHP file, echoing out the appropriate HTML, but not filling in the variables from the XML data.

    Anyone have any idea why this would occur?

  • The topic ‘Parsing XML with PHP Include’ is closed to new replies.