ThemeShaper Forums » Thematic

Post Entry Layout

(4 posts)
  • Started 12 years ago by Shew
  • Latest reply from Ian Stewart
  • This topic is resolved
  1. Shew

    In Thematic, the entry author's name is followed by a pipe and the entry date.

    I would like to
    a) Remove the entry author's name from this location and the pipe
    b) Place the entry author's name below the date.

    Using CSS, (if there is an entry-author class) I can do the rest of what I want to do. The problem is that I can not find the PHP document which controls the layout of the post entries.


    Posted 12 years ago #
  2. Read Custom WordPress Hooks and Filters in Thematic and look in hooks-filter.php.

    Posted 12 years ago #
  3. Shew

    Okay, I am doing all of this by hit or miss, because your documentation is written for people who have already got several years of experience under their belt and is not easily decipherable by the newbie.

    Here is what I come up with - (but I am getting results which differ from what I desire)

    $postmeta = '<div class="entry-meta">';
    $postmeta .= '<span class="entry-date">';
    $postmeta .= __ . '<abbr class="published" title="';
    $postmeta .= get_the_time('Y-m-d\TH:i:sO') . '">';
    $postmeta .= get_the_time('F j, Y');
    $postmeta .= '</abbr></span>';
    $postmeta .= '<span class="author vcard">';
    $postmeta .= __('By ', 'thematic') . '<a class="url fn n" href="';
    $postmeta .= get_author_link(false, $authordata->ID, $authordata->user_nicename);
    $postmeta .= '" title="' . __('View all posts by ', 'thematic') . get_the_author() . '">';
    $postmeta .= get_the_author();
    $postmeta .= '</span>';
    $postmeta .= "</div><!-- .entry-meta -->\n";

    What I am getting is a leading underline followed by the date, followed by the entry author's name (all on the same line.

    What I want is to a) lose the leading line and b) force a line break between date and entry author.

    If I were using XHTML rather than PHP, I would enclose Date in a <p></p>


    Posted 12 years ago #
  4. If you follow the example on Custom WordPress Hooks and Filters in Thematic you can probably safely ignore the PHP and just concentrate on the HTML. I try and write any examples so they can just be copy-pasted and hacked away at.

    Posted 11 years ago #

RSS feed for this topic


You must log in to post.