ThemeShaper Forums » Thematic

[closed]

Filter Post Meta

(1 post)
  • Started 3 years ago by gelay
  • This topic is not resolved

Tags:

  1. I want to have this Post Meta right after the title, before the content:

    TITLE
    Author | December 7, 2010
    Post Post Post Post Post

    I am trying the following, but the Author is being displayed above the title. SOS.

    /* Modify postheader_postmeta */
    function childtheme_postheader_postmeta() {

    $postmeta = '<div class="entry-meta">';
    $postmeta .= '<span class="cat-links">';
    if (is_single() || is_home() || is_front_page() || is_archive()) {

    $postmeta .= '</span>';
    $postmeta .= __('', 'thematic') . the_author_posts_link();
    $postmeta .= '<span class="meta-prep meta-prep-entry-date">' . __(' | ', 'thematic') . '</span>';
    $postmeta .= '<span class="entry-date"><abbr class="published" title="';
    $postmeta .= get_the_time(thematic_time_title()) . '">';
    $postmeta .= get_the_time(thematic_time_display());
    $postmeta .= '</abbr></span>';
    }

    $postmeta .= "</div><!-- .entry-meta -->\n";

    return apply_filters('childtheme_postheader_postmeta',$postmeta);

    }
    add_filter('thematic_postheader_postmeta', 'childtheme_postheader_postmeta');

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.