Hi there,
I'm wondering on how to show a list of trackbacks to my pages.
I'm an avid php coder as i made several plugins on several systems but i cannot find the hooks/functions to show trackbacks on pages.
Thanks in advance!
Hi there,
I'm wondering on how to show a list of trackbacks to my pages.
I'm an avid php coder as i made several plugins on several systems but i cannot find the hooks/functions to show trackbacks on pages.
Thanks in advance!
Not completely sure I follow. Sending and receiving trackbacks is builtin.
http://codex.wordpress.org/Introduction_to_Blogging#Trackbacks
what im trying to do is this:
i create a page. type my stuff in it.
then someone writes about that pages on some website. placing a link to it on his/her page/post. a trackback is generated.
i receive that trackback. and then it just sits there in the database. i want to show a list of trackbacks on that page (or all pages) i've created.
i can just add the comment template but i dont want comments. ive got articles and a guestbook for that. so i need/want to show trackbacks only.
Does this article give any ideas?
That actually helps alot yes.
Thanks!
ive been playing with this issue some more in the last few days and i found that its rather tricky to show pingbacks on a page. or am i doing something wrong?
for the comments on articles i use:
<ol class="commentlist">
<h3 id="trackbacks">Trackbacks/Pings</h3>
<?php foreach($comments as $comment) { ?>
<?php if(get_comment_type() != "comment") { ?>
<li class="<?php echo $oddcomment; ?> smaller" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) {
$oddcomment = '';
} else {
$oddcomment = 'alt';
}
}
}
?>
Which works quite nice. But when i use this exact piece of code on a page template it wont show up.
At first i thought i was wrong and there is no pingback, but when i look in the database there really is one. linking to that page.
i tried leaving out <?php if(get_comment_type() != "comment") { ?>
or changing it: <?php if(get_comment_type() == "pingback") { ?>
But it didnt work.
Anyone got an idea?
This topic has been closed to new replies.