Hi guys,
I have been working on a custom template and wanted to include a trackback link at the bottom of each page and post. I found a theme that already includes this functionality and copied the following code into my "comments.php" theme file.
<?php if(pings_open()) : ?>
<span class="addtrackback"><a href="<?php trackback_url(); ?>"><?php _e('Trackback', 'inove'); ?></a></span>
<?php endif; ?>
But the links that are generated do not appear to be correct.
On the page: http://localhost:8080/blog/?page_id=2
The trackback link is: http://localhost:8080/blog/wp-trackback.php?p=2
If the trackback link is clicked I get the following error message in XML format:
<response>
<error>1</error>
<message>I really need an ID for this to work.</message>
</response>
On the page: http://localhost:8080/blog/?p=16
The trackback link is: http://localhost:8080/blog/wp-trackback.php?p=1
Which I think is probably correct.
Could you please advise me on this issue?
Many thanks,
Lea Hayes