Okay, I've been toying with this on my own site, and following the suggestions of
http://wphacks.com/separating-trackb...wordpress-2-7/
here's what I did (using ATA 3.5.3 and WP 3.0.4):
In the comments.php as noted above, I removed the above code, and replaced it with:
Code:
<?php // Do this for every comment
if ($bfa_ata['separate_trackbacks'] == "Yes") {
//add-in by derek beck for
//from www.wphacks.com/separating-trackbacks-from-comments-in-wordpress-2-7/
wp_list_comments(array(
'avatar_size'=>$bfa_ata['avatar_size'],
'reply_text'=>__(' · Reply','atahualpa'),
'login_text'=>__('Log in to Reply','atahualpa'),
'callback' => bfa_comments,
'type' => 'comment'
));
echo "<BR><h3 id='comments'>Trackbacks:</h3>";
echo "<div id='pings'>";
wp_list_comments('type=pings&callback=list_pings');
echo "</div>";
//end add-in
} else {
The id=comments for the trackbacks header makes it the same css formats as the comments title above it. The div id=pings is useful for customized css, as noted below.
In the functions.php, I put the following at the bottom of the existing functions.php:
Code:
<?php
//add-in by derek beck for
//from www.wphacks.com/separating-trackbacks-from-comments-in-wordpress-2-7/
function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
<?php } ?>
<?php
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
if ( ! is_admin() ) {
global $id;
$comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
return count($comments_by_type['comment']);
} else {
return $count;
}
}
//end add-in
?>
Finally, in the ATA settings, CSS Inserts, I added the following CSS, which I've commented out a few things, but you get the idea on how to change stuff:
Code:
div#pings li {
position: relative;
left: 10px;
font-size: 0.8em !important;
font-weight: normal !important;
margin-bottom: 4px !important;
}
div#pings li a:visited, div#pings li a:link {
/*color: #663333;*/
font-weight: normal !important;
}
div#pings li a:hover, div#pings li a:active {
/*same as default links*/
/*color: #CC0000;*/
font-weight: normal !important;
}
The result can be seen at
http://www.derekbeck.com/1775/info/british-christmas/
hope that helps someone!