WordPress.org

Ready to get started?Download WordPress

Forums

Showing only 5 comments? (3 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.

  2. Avenir
    Member
    Posted 9 years ago #

    You need to enclose your code in backticks so that the board doesn't try to render it.

    Regarding your question, I have no idea.

  3. MC82
    Member
    Posted 9 years ago #

    Not sure if these are back ticks, but here you go. Pls can anyone help me.

    <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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.