WordPress.org

Support

Support » Themes and Templates » problem with the_date()

problem with the_date()

  • darren131

    @darren131

    hi all,
    I’m trying to create a timestamp (using the the_date() function), here is the code:
    $day = the_date(‘jS’,”,”,0);
    $month = the_date(‘m’,”,”,0);
    $monthname = the_date(‘F’,”,”,0);
    $year = the_date(‘Y’,”,”,0);
    $timestamp = “$day $monthname, $year”;
    for some reason its not working…its only outputting $day and $month.
    Any ideas would be great!
    Cheers
    Darren

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem with the_date()’ is closed to new replies.
Skip to toolbar