I'm doing new blog, without ability to comment posts, but with trackbacks instead. Here is my comments.php:
<?php if ( have_comments() ): ?>
<p>Do wpisu nawiązano na innych blogach:</p>
<ul>
<?php wp_list_comments('callback=trackbacks'); ?>
</ul>
<?php else: endif; ?>
Here is function trackbakcs from functions.php:
<?php
function trackbacks($comment) {
$GLOBALS['comment'] = $comment;
?>
<li><?php comment_text(); ?> <a href="<?php comment_author_url(); ?>"><?php comment_author(); ?></a>
<?php } ?>
I have problem here, because comment_author gives only title of blog, trackback came from. Title of referring post is given by comment_text, here is how it looks:
<p><strong>Tytuł wpisu</strong></p>
<p>Fragment treści wpisu</p>
I'd like to cut somehow content of strong tags and display it along with title of referring blog:
<li><a href="blog's url">Blog's title</a> - <a href="post's url">Post's title</a></li>
Any ideas?