This template tag needs to be in your template (with themes, typically somewhere in single.php or comments.php) to display your trackback link:
http://codex.wordpress.org/Template_Tags/trackback_url
Thanks for that link.
I entered this code in both files and still cannot see a trackback link:
Trackback URL for this post: <?php trackback_url(); ?>
(there are p tags around the code but for some reason they’re not displaying properly here despite the code tags). I’m assuming you use the Example version of the code rather than the Usage version. Am I right?
What’s the diff. bet. entering it in single.php as opposed to comments.php in terms of where the link will display?
My trackback url does now display. But it displays all the way at the bottom of the post display pg. after all comments. Is there a way to get it to display immediately after the post and BEFORE the comments?
In your Post Template (single.php), change this:
<p class="postfeedback">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>" class="permalink"><?php _e('Permalink'); ?></a>
</p>
to this:
<p class="postfeedback">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>" class="permalink"><?php _e('Permalink'); ?></a> <strong>|</strong> <a href="<?php trackback_url(); ?>" title="trackback" class="permalink">TrackBack</a>
</p>
Eureka! That was just what I was looking for! Thanks so very much. And did I forget to say you are a genius–all right I’ll try not to get carried away, but truly thanks.
Not a problem. I’m always glad to lend a hand. ^_^
That last piece of code does not appear in my single.php
so I still don;t have trackback enabled – Any ideas please ?
Copy/paste the second piece of code macmanx gave above into your single.php.
I just noticed that my trackback url only appears when the post permalink is used but no trackback urls appear on the main page. Is something missing from my tempate code?
Here’s my main pg:
http://www.richardsilverstein.com/tikun_olam/
And here’s a permalink:
http://www.richardsilverstein.com/tikun_olam/2005/06/ken-schram-public-breastfeeding-is-like-urinating-in-public/