• Hi,

    So I’m trying to use jquery’s ajax features to load an image based on the post’s post date. I’ve been using the template tag “the_time()” for recalling post dates. However, when I tried using the_time() with the jquery ajax “load” function, it says:

    Fatal error: Call to undefined function the_time() in C:\…blablabla.

    What I have is the ajax “load” loading a file that contains the “the_time()” tag. I tried using a php function, such as date(), just to test it, and that worked, but that’s not what I need. I guess what I’m asking is, is there a way to extract the post’s post date other than using WordPress’s template tags like the_time() and the_date()?

    Thanks everyone.

  • The topic ‘Ajax loading exernally the_time’ is closed to new replies.