WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Separating Comments, Pingbacks, Tweetbacks (3 posts)

  1. chazbeaner
    Member
    Posted 5 years ago #

    I'm trying to separate the three types (using Yoast's Tweetback plugin for the third type) but after separating out the loop, my pingbacks and appearing as reg comments and under the pingback section. see here:

    http://www.wicked-pr.com/blog/social-media/seesmic-desktop-twitter-client-improves-twhirl-replaces-tweetdeck-731.html

    Here is my comment loop:

    <?php if ( have_comments() ) : ?>
    
    <?php if ( !empty($comments_by_type['comment']) ) : ?>
    	<a class="anchorFix" name="comments"></a>
    	<ul class="commentlist" id="singlecomments">
    	<?php wp_list_comments(array('type=comment', 'avatar_size'=>48, 'reply_text'=>'Reply to This Comment')); ?>
    	</ul>
    	<?php endif; ?>
    
    <!-- show the tweetbacks -->	
    
    	<?php if ( ! empty($comments_by_type['tweetback']) ) : ?>
    		<a class="anchorFix" name="comments"></a>
    		 <h3 id="pings">Tweetbacks</h3>
    		  <ul class="commentlist" id="singlecomments">
    		  <?php wp_list_comments('type=tweetback'); ?>
    		  </ul>
    		<?php endif; ?>
    
    <!-- show the trackbacks/pingback -->
    
    	<?php if ( ! empty($comments_by_type['pings']) ) : ?>
    		<a class="anchorFix" name="comments"></a>
    	  <h3 id="pings">Links to this Article</h3>
    	  <ul class="commentlist" id="singlecomments">
    	  <?php wp_list_comments('type=pings'); ?>
    	  </ul>
    	<?php endif; ?>

    Not really sure what is happening or why. Thoughts?

  2. chazbeaner
    Member
    Posted 5 years ago #

    ok, figured it out... just in case anyone else runs into this issue, the correct syntax for adding parameters to the wp_list_comments is different from what i had.

    was:
    <?php wp_list_comments(array('type=comment', 'avatar_size'=>48, 'reply_text'=>'Reply to This Comment')); ?>

    correct:
    <?php wp_list_comments('type=comment&amp;avatar_size=48&amp;reply_text=Reply to This Comment'); ?>

    edit: ok, i give up...no backticks are working for me now for the code.

  3. php4ever
    Member
    Posted 4 years ago #

    Your post is old but here is the fix;

    <?php wp_list_comments(array('type'=>'comment', 'avatar_size'=>'248', 'reply_text'=>'Reply to this Comment')); ?>

    Best Regards.
    Jared Ritchey

Topic Closed

This topic has been closed to new replies.

About this Topic