How to use trackback_url() function properly?
-
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: https://localhost:8080/blog/?page_id=2
The trackback link is: https://localhost:8080/blog/wp-trackback.php?p=2If 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: https://localhost:8080/blog/?p=16
The trackback link is: https://localhost:8080/blog/wp-trackback.php?p=1Which I think is probably correct.
Could you please advise me on this issue?
Many thanks,
Lea Hayes
- The topic ‘How to use trackback_url() function properly?’ is closed to new replies.