• Hey everyone!
    I just created a wordpress blog for my fiance (a teacher blog of sorts, since she is a teacher) using the newest wordpress build and the Freshy2 theme.

    https://www.MsFerreirasClass.com

    The problem I’ve encountered is that after editing the Page.php file of the Freshy theme to allow certain categories to show up under their designated pages, the post date does not show up underneath the title. Nor does the author. Now if I click one of the categories from the left side, the posts will show up with author and post date intact. But I guess I am just curious to know if there might be something I have to add to the php to make it display that information as well when clicking on the page link at the top. For reference, here’s the contents of the Page.php file (the part I edited in starts at line 3) :

    <?php get_header(); ?>

    <div id=”content”>

    <?php
    if(is_page(‘Photos & Videos’)){query_posts(“cat=7”);}
    if(is_page(‘Homework Assignments’)){query_posts(“cat=4”);}
    if(is_page(‘Websites for Students’)){query_posts(“cat=9”);}
    elseif(is_page(‘Announcements’)){query_posts(“cat=5”);}
    ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2><?php the_title(); ?></h2>

    <div class=”entry”>
    <?php the_content(‘<span class=”readmore”>’.__(‘Read the rest of this entry ?’,TEMPLATE_DOMAIN).'</span>’); ?>
    </div>
    </div>

    <div class=”meta”>
    <dl>
    <?php if(function_exists(‘the_tags’)) : ?>
    <?php the_tags(‘<dt>Tags</dt><dd>’, ‘, ‘, ‘</dd>’); ?>
    <?php endif; ?>
    <?php if(function_exists(‘the_bunny_tags’)) : ?>
    <?php the_bunny_tags(‘<dt>Tags</dt><dd>’, ‘</dd>’, ‘, ‘); ?>
    <?php endif; ?>
    <?php if(function_exists(‘the_bookmark_links’)) : ?>
    <dt><?php _e(‘Spread the word’,TEMPLATE_DOMAIN); ?></dt><dd><?php the_bookmark_links(); ?></dd>
    <?php endif; ?>
    <?php if (‘open’ == $post-> comment_status) : ?>
    <dt><img alt=”<?php _e(‘Comments rss’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/feed-icon-16×16.gif” /></dt><dd><?php comments_rss_link(__(‘Comments rss’,TEMPLATE_DOMAIN)); ?></dd>
    <?php endif; ?>
    <?php if (‘open’ == $post->ping_status) : ?>
    <dt><img alt=”<?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/trackback-icon-16×16.gif” /></dt><dd> ” rel=”trackback” title=”<?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?>”><?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?></dd>
    <?php endif; ?>
    <?php if ($user_ID) : ?>
    <dt><img alt=”<?php _e(‘Edit’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/edit-icon-16×16.gif” /></dt><dd><?php edit_post_link(__(‘Edit’,TEMPLATE_DOMAIN),”,”); ?></dd>
    <?php endif; ?>
    </dl>
    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <h2><?php _e(‘Not Found’,TEMPLATE_DOMAIN); ?></h2>
    <p><?php _e(‘Sorry, but you are looking for something that isn\’t here.’,TEMPLATE_DOMAIN); ?></p>

    <?php endif; ?>

    </div>

    <?php // sidebars ?>
    <?php if ($freshy_options[‘sidebar_right’] == true) get_sidebar(); ?>
    <?php if ($freshy_options[‘sidebar_left’] == true) include (TEMPLATEPATH . ‘/sidebar_left.php’); ?>

    </div>

    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • Yeah it looks like you deleted that info from page.php. Just paste it back in where you want it.

    <?php the_author() ?>
    <?php the_time('F j, Y'); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Post date / Author not displaying’ is closed to new replies.