I have two content types, Article and Story, and they use the same theme files: node.tpl.php and page.tpl.php.
The problem is on Stories, div with submission date and tags is not displayed:
Article: http://webmasterformat.com/blog/innovative-html5-sites - date and tags are below the title
Story: http://webmasterformat.com/blog/new-website-launch-tips - date and tags are missing.
The problem is only with full node view. Teasers are displayed okay, with dates and tags for both content types.
This is part from node.tpl.php (Story and Article are both using this file) which is skipped for Stories only:
<?php if ($submitted): ?>
<div class="submitted clear-block">
<?php print $date; ?><?php if ($terms): ?> in<?php print $terms ?><?php endif; ?>
</div>
<?php endif; ?>
So I guess, something went wrong with if ($submitted) for Stories, but I have no clue how to find the solution.
Any help is much appreciated.
Comments
Go to
Go to http://webmasterformat.com/admin/build/themes/settings and check the box for "Story" in the "Display post information on" fieldset.
edit: If you're curious, the
$submittedvariable comes from template_preprocess_node() and you can see there that it's not set unless that theme setting is enabled. Same goes for user pictures apparently.Thank you very much for your
Thank you very much for your help. Can't believe it was so simple and I couldn't figured it out for hours.