0

I'm attempting to render the posted date of an article in a specific way. I understand that there is a

Display author and date information.

Checkbox in the content type editor. However I don't believe that would resolve my issue. I'm using the domain access module and the articles on the domains using a different theme cannot be altered. Certainly not how they're displayed anyway.

Is there a way to programmatically grab the posted date from within the template? Is there something similar to

print render($content['body']);

That I can use to render that information? Or is there a function I can call that contains that information?

1 Answer 1

0

I was able to render the date by performing

print format_date($node->created, 'article');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.