[themes] Re: style date differently

David Carrington david.carrington at gmail.com
Wed Dec 14 17:50:18 UTC 2005


On 14/12/05, david hodgkins <hodgkins at gmail.com> wrote:
> > put this at the top of the node.tpl.php or wherever you need it...
> >
> > <?php format_date($node->created, 'custom', 'D M d Y') ?>
> >
> Just adding that didn't work anywhere.

Because of the all-important "echo". This should work in node.tpl.php:

<?php echo format_date($node->created, 'custom', 'D M d Y'); ?>

--
David Carrington


More information about the themes mailing list