I’m having trouble figuring out why some of the content here isn’t printing out. Everything I’m localizing prints out ok, but the_date() and the_author are drawing up blank.
I know these functions need to be called from within a loop but if it’s being called from a single page it is the same thing, correct?
if(is_singular() && !is_front_page() ) {
?>
<li id="postmeta" class="widget">
<h2><?php echo __('Information','semi-static'); ?></h2>
<?php
//add meta data, but for pages only
if(is_page() ) {
?>
<p><?php echo __('Page Created', 'semi-static');
the_date();
echo __(' by ','semi-static');
the_author(); ?></p>
<?php
//pages should have page menu
wp_list_pages();
}