• Resolved chrisgwynne

    (@chrisgwynne)


    I’m trying to use the_date tag twice within the loop however it doesn’t seem to be working and is just showing an empty value where it should be.

    <time datetime="<?php the_date('Y-m-d'); ?>" pubdate="pubdate"><?php the_date(); ?></time>

    It works for the time attributes but not for the content of time tag, any help?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using the same tag twice’ is closed to new replies.