WordPress.org

Ready to get started?Download WordPress

Forums

How to show only 5 comments on page? (16 posts)

  1. MC82
    Member
    Posted 9 years ago #

    suppose I currently have my comment setup to show as so

    <font class="com_name">"><?php comment_author(); ?></font>
    <font class="com_tag">[<?php comment_date('m.d.y'); ?> | <?php comment_time('g:i A'); ?>]</font>
    <p class="com_comment"><?php comment_text(); ?>

    how can set it up so that only the 5 latest comments show up on the page? i cant seem to find how in the codex.

    I posted this on another section, but realized that I might not be getting a answer because its in the wrong section, sorry.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Show up on which page ?
    - the front page ?
    - on a permalinked page ?
    - in the sidebar ?

    And if you only want 5 comments, and I comment making it 6, how would people get to see my comment ?

    Please provide some more detail.

  3. Jinsan
    Member
    Posted 9 years ago #

  4. moshu
    Member
    Posted 9 years ago #

    Jinsan, I don't think the plugin is the answer for this quite unusual request. If I understand well what the OP is saying s/he wants only 5 comments shown after the posts (which is nonsense, but that's what was posted here and in another similar thread started by the same person).

  5. MC82
    Member
    Posted 9 years ago #

    basically what I want is to show 5 latest comments on the front page, then ill provide a link for them to see the rest of the comments. So if you post comment 1 out of 10, you can click a link that says "see all comments" and a popup comment window will show up.

    ill look into the pluggin, thanks.

  6. moshu
    Member
    Posted 9 years ago #

    Formulating and posting a wrong question always creates a mess...
    MC82, first of all, on the "front page" there are NO comments shown - if we both think about the same thing when saying main page, i.e. the start/index page of a blog.
    If you want to have somewhere on the sidebar the latest 5 comments (regardless to which post they were added) then yes, use the plugin.

    In case you want something different, I am afraid we still don't understand it.

  7. Jinsan
    Member
    Posted 9 years ago #

    EVerytime you explain it sounds even wierder to me.

    What that plugin will do is allow you to list the 5 lates comments of the 10 latest comments from a category or overall. You can place that list anywhere you want, however you want. If you have a front page, then I guess you can also add it to that template.

    If that's what you're after that plugin will do it for you - moshu the plugin isnot limited to the sidebar, you can place it in a page or practically anywhere.

    Still, I don't quite understand the request, but that plugin shoudl do what you want as long you follow the instructions. Now if as moshu states you want to limit the number of comments per post (which is frankly odd) then I don't have monkeys on how to do that, and I have to wonder why. Taking that aside, it also seems you want to keepa limit and have a pop up window which displays the comments. Very odd indeed

  8. dawg
    Member
    Posted 9 years ago #

    Why would you not be able to limit it just like you do for limiting recent topics? 15 or 5 in his case, it is his blog he should be able to do with it what he wants, who am I to judge

  9. MC82
    Member
    Posted 9 years ago #

    Haha, sorry for the confusion.

    I think the plug-in will do just fine.

    I do not want to limit the number of comments that can made.

    I am currently creating my own template and on my pages I have three column, one is the side bar, middle is for latest comments, and right is for entry. I only want 5 comments to show in the middle column, but if they click a link, they will see all the comments that have been posted (unlimited).

    I hope that makes it more understandable.

    Thanks for the help guys, Im going to try that pluggin out.

  10. moshu
    Member
    Posted 9 years ago #

    I am currently creating my own template and on my pages I have three column, one is the side bar, middle is for latest comments, and right is for entry. I only want 5 comments to show in the middle column, ...

    You should have started with this in your other thread :) and could have saved a lot of typing, confusion and time.

  11. MC82
    Member
    Posted 9 years ago #

    haha, ill remember to say this next time I ask a question, which looks like it might not be to long from now (I think i got to use to MTs configuration). thanks for the help

  12. MC82
    Member
    Posted 9 years ago #

    I havent had time to try the plugin yet, but by just looking at it, it seems that I cant show the comments content. Did I miss read his page, or is this not possible.

  13. dawg
    Member
    Posted 9 years ago #

    he actually did way back here

    1 out of 10, you can click a link that says "see all comments" and a popup comment window will show up.

  14. MC82
    Member
    Posted 9 years ago #

    Ok to better explain myself heres an example of how i want it to show up:

    Latest 5 Comments
    -------------------------------
    Comment Author 1
    Date commented
    Comment Content 1

    Comment Author 2
    Date commented
    Comment Content 2

    Comment Author 3
    Date commented
    Comment Content 3

    Comment Author 4
    Date commented
    Comment Content 4

    Comment Author 5
    Date commented
    Comment Content 5

    is this possible?

  15. MC82
    Member
    Posted 9 years ago #

    This is really a feature I would like to add on my website. Here is a picture of what I would love to have it look like

    http://www.beyondeight.com/TEMPORARY/Comments.gif

    Please let me know if its possible

  16. Root
    Member
    Posted 9 years ago #

    Comments curvey corners in CSS ? Wow. That is posh. Very nice piece of work IMHO and technically one of the best I have seen in ages. Really cool.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.