Support » Themes and Templates » Author, Author Image, Time Posted, and # of Comments on LEFT side

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey mibsolutions…I can try and help you…

    I did something similar to this, a client of mine actually wanted to have the details your talking about BELOW the post…weird I know, but that’s what they wanted.

    I accomplished this by setting up a basic table (2 rows, 1 column), then grabbing the <?php the_content; ?> variable, putting it in the above row, and below using the <?php the_time(‘j F Y’) ?> for the time, client wanted the views of the article so I used the <?php if(function_exists(‘the_views’)) { the_views(); } ?> , comments : <?php comments_number(‘No Comment’, ‘One Comment’, ‘% Comments’ );?> and of course the author variable <?php the_author() ?>.

    With that mumbo jumbo of variables I set up a master div, and plopped the variables in there, all of the CSS to style, etc.

    Your problem could be doing something similar to this, but with having a 2 column layout instead of my 2 row layout.

    Of course I’m talking about editing the single.php file within your theme.

    Worth a shot, hope this helped 🙂

    That is what I was thinking of doing, so thanks for your thoughts.

    Do you know how to show the author’s image (worth a shot asking)?

    Your very welcome MIB 🙂

    I think it’s <?php echo get_avatar( $post, $size = ’55’ ); ?> I think my brain is fried for today though!

    I’m trying to figure out if it’s $post… that’s from the commenting php file, so it has to branch off of that…you might have to monkey with the code a little bit to tell that variable that the author of the post is the avatar you want to retrieve.

    I am curious how you got each Post’s Comments, Author, etc to show up in the separate table column – when WordPress Post system is set up as a loop – showing all the posts at once.

    Right now I have all my posts showing, but only one entry for Author, etc. You can view the live Sandbox here:

    Any insight would be appreciated!

    Hmm, I see what your trying to do, you’re trying to make that view apply to the homepage, not the article view (or single.php).

    Try setting something up like this:

    Lets say you wanted to show the posts from a category called “Homepage”, and wanted to show a maximum of only 5 of them.

    I’d start by coding the table,

    <table border="1" width="520" cellpadding="3" cellspacing="3">
    <!-- this is column one for example, names, posts, etc here. -->
    <?php query_posts("showposts=5&category_name=Homepage"); ?>
    		<?php while (have_posts()) : the_post(); ?>
    [<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]
    <!-- Time to display the content... -->
    <?php the_excerpt(); ?>
    	<a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>
    	<?php endwhile; ?>

    Something to that effect… just adding the <?php endwhile; ?> etc to see if that will display the info you need multiple times instead of just once…

    Again, like I said my brain is toasted man…hope this gets you closer to your answer 😀


    I’d try dynamic DIVs instead of tables for this, or

      s that will be automatically generated when it it notices multiple posts coming through…come to thing of it 🙂

    Was there something before: “s that wil”, second to last line.

    I’m going to have to figure out an easier way, since I’ll have to have this show up both on the Homepage, but also Single and Search Results – so having the homepage simply link to a group of categories will only work in one instance of what I am looking for.



    Don’t know why I didn’t think of this sooner:

    Put the post in a div, as well as the author in a div. Put Post float right, Date area float right. I will write a more descriptive article on my blog and link it. Hope this helps someone until then….

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Author, Author Image, Time Posted, and # of Comments on LEFT side’ is closed to new replies.