• Hi there.

    I got two problems with my Recent Comments.
    I get them with the following code:

    <div class="recent">
        <span class="recent-titles">Recent Comments</span>
        <ul class="list2">
    <?php if(function_exists("get_recent_comments")) : ?>
    <?php get_recent_comments(); ?>
    <?php else : ?>
    <?php mw_recent_comments(4, false, 35, 15, 35, 'all', '<li><a href="%permalink%" title="%title%"><strong>%author_name%</strong></a> in %title%</li>','d.m.y, H:i'); ?>
    <?php endif; ?>
    </ul>
        </div>

    Question #1: What exactly is ” 4, false, 35, 15, 35, ‘all’, ‘ ” ?

    Question #2: Generally i want to allow Trackbacks/Pingbacks, but i dont want to show them in my Recent Comments… how to realize that?

Viewing 1 replies (of 1 total)
  • 1. That’s a plugin but did find:

    function mw_recent_comments(
        $no_comments = 10,
        $show_pass_post = false,
        $title_length = 100,     // shortens the title if it is longer than this
    number of chars
        $author_length = 30,    // shortens the author if it is longer than this
    number of chars
        $wordwrap_length = 50, // adds a blank if word is longer than this
    number of chars
        $type = 'all',     // Comments, trackbacks, or both?
        $format = '<li>%date%: <a href="%permalink%" title="%title%">%title%</a>
    (by %author_full%)</li>',
        $date_format = 'd.m.y, H:i',
        $none_found = '<li>None Found.</li>',    // None found
        $type_text_pingback = 'Pingback from',
        $type_text_trackback = 'Trackback from',
        $type_text_comment = 'by'

    2. https://www.google.com/search?q=wordpress+excluding+trackbacks+from+recent+comments

Viewing 1 replies (of 1 total)
  • The topic ‘2 Questions about Recent Comments’ is closed to new replies.