Support » Plugin: Export any WordPress data to XML/CSV » Add a build date to the export header

  • Resolved lssw

    (@lssw)


    Hi,

    I’m trying to just add a build date/timestamp for the export. I am not very experienced with PHP, but I thought I had followed the directions. I have placed the following in the function editor:

    <?php
    function exdate() {
    echo date(‘F d, Y h:i:s A’);
    }
    ?>

    and then I am using this code right after the start of the custom XML:
    <lastBuildDate>[exdate()]</lastBuildDate>

    What am I missing? This version displays in the preview, but the export fails. If I remove this, the export completes.

    Is there an easier way to insert a timestamp or am I doing something wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add a build date to the export header’ is closed to new replies.