• Resolved axelmktg

    (@axelmktg)


    Hello,

    I would like to publish original post date for new posts, that may not have been included in the original import feed as an option (start/end date). In this case, i would like the start date to be the original publish date of each post.

    I have attempted to create a new custom function with the following code and add it to functions.php.

    function my_custom_function($x) {
    echo get_the_time(‘Y-m-d’, $post->ID);
    }

    However, this code does not work and i am not able to pull posts’ original dates.
    If any one has worked on a similar issue or have a solution to this issue, your feedback would be greatly appreciated.

    Ax.

    https://www.ads-software.com/plugins/wp-all-import/

  • The topic ‘custom new function to use in template’ is closed to new replies.