Forums

Post meta data in sidebar displays incompletely (1 post)

  1. liblogger
    Member
    Posted 3 years ago #

    I'm trying to display the post meta data for a single post in the sidebar, but only some of the meta data displays.

    I have:

    <p class="postmetadata alt">Posted on <?php the_time('jS F, Y') ?> by <?php the_author() ?> in <?php the_category(', ') ?> <?php the_tags('and tagged with: ', ', ', '.'); ?> <?php edit_post_link('Edit this entry.'); ?></p>

    Which displays within the Loop as, for example:

    Posted on 11th March, 2009 by Someone in News and tagged with: Various Tags. Edit this entry.

    but only displays as:

    Posted on 11th March, 2009 by in News Edit this entry.

    in the sidebar.

    Should I be setting up a baby Loop here? It seems a little odd that some of the meta data should display and the rest disappear, and the Codex's Post Meta Data Section page doesn't indicate that this is necessary. I could swear I've seen themes that display this information in the sidebar.

    Any help is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic