Last updated October 18, 2011. Created on February 16, 2011.
Edited by MGParisi, LarsKramer. Log in to edit this page.

For some posts you may want to hide the author info below the title of the node, but still diplay the publication date. I managed to do this by adding the following line to node.tpl.php in my theme folder.

<?php if ($date && (!$submitted)): ?><span class="submitted"><?php print $date; ?></span><?php endif; ?>

What this does is to display the date only for those content types for which the setting "Display post information" is deactivated on

Looking for support? Visit the forums, or join #drupal-support in IRC.


naught101’s picture

See #1194470: Content type display: separate author and date information for a more systematic solution (pending).