WordPress.org

Ready to get started?Download WordPress

Forums

Author and tags not displaying in sidebar (2 posts)

  1. amplifiedshock
    Member
    Posted 6 years ago #

    I am trying to display the Author and Tags in my sidebar. I have included the exact same php codes from my index.php and single.php templates, but the info still does not show up. Only the date and categories are displayed...

    Here's an example of what I'm talking about: http://ericm.ca/2008/web-development/improving-web-usability

    Thanks for your help.

  2. Kafkaesqui

    Posted 6 years ago #

    "I am trying to display the Author and Tags in my sidebar."

    And which specific template tags would this be?

    Many require use within The Loop, and the sidebar would tend to fall outside of that. If this is the case, try scoping the $post object to global first before using any post loop template tags outside of The Loop:

    <?php global $post; ?>
    <?php the_author(); ?>
    <?php the_tags(); ?>
    etc...

Topic Closed

This topic has been closed to new replies.

About this Topic