Is WordPress 2.7 actually separating pings from comments?


At least on Archive 2.0 it doesn’t do it at all.

I have noticed that my blog didn’t liked track-backs in terms of share some love and actually show them on page and I had to search the entire Google to find why the following code is not working:

<?php

<?php if ( $comments_by_type['pings'] ) : ?>
<h2 id="pings">Trackbacks/Pingbacks</h2>
<ol class="commentlist">
    <?php wp_list_comments('type=pings'); ?>
    </ol>

    <?php endif; ?>

?>

The result? I didn’t find anything bad about it. I have found many blogs (like Sivel.com with this post or Benjamin Sterling Dot Com with this article) that are writting about the fact that separating normal comments from pings is a normal thing in Wordpress 2.7.

Ok. So what should I understand? That’s all about my wordpress theme’s fault?

As I needed a way to solve this problem, I modified this code…

<?php

<ol class="commentlist">
    <?php
wp_list_comments('avatar_size=35&callback=custom_comment&type=comment');
?>
    </ol>

?>

… by erasing the &type=comment part, in order not to make any differences between track-backs and normal comments. (As you can see, TypeBased Wordpress Theme is adding also an avatar and a new variable called “callback”.)

As the result code was…

<?php

<ol class="commentlist">
    <?php
wp_list_comments('avatar_size=35&callback=custom_comment');
?>
    </ol>

?>

… I saved the page, uploaded back on the server and saved also the day :-).

Tags: , , , ,

5 Responses to “Is WordPress 2.7 actually separating pings from comments?”

  1. Бизнес Статьи  on June 25th, 2009

    У меня похожая ситуация. Давайте обсудим.

  2. gemoeurollock  on July 2nd, 2009

    Очень понравился ваш блог! Подписался на rss. Буду регулярно читать.

  3. doTEncold  on July 12th, 2009

    Прошу прощения, ничем не могу помочь. Но уверен, что Вы найдёте правильное решение.
    наконец появился ато уже заждался

  4. BeraErerMoolf  on August 15th, 2009

    Автор, а скажите а куда написать по поводу обмена ссылок (на какое мыло)?

  5. знакомства для отношений  on May 4th, 2010

    ок важнецки

Leave a Reply