Trackbacks and Pingbacks
-
Hi,
I am wondering how to automatically contain a link in each post for trackbacks (others to trackback to me).
Thanks!
Sue
-
look at how the default theme accomplishes it.
displaying the trackback url is done like this..
<a href="<?php trackback_url(); ?> " rel="trackback">trackback</a>theres much more to consider thiough, since you dont want that to display iof you have trackbacks turned off —
Like I said, look at how the default theme handles it.
Thank you. And which file is that code entered into?
Where do you want your trackback URL to appear?
1. Just below comments? Then enter it in the Comments template of your theme.
2. In the footer? Then enter it in the Footer template of your theme.
..and so on.
I have trackbacks allowed in my options but entering this code into my theme does not result in a trackback link being presented. How do I fix this?
Thanks!
SueYou need to put it in your theme correctly. We have no idea what you’re doing, we can’t read your mind.
The default theme does it correctly. Follow that as an example.
When I view my blog using the default theme, the trackback link does not appear. Please point me in the direction of where to look for the problem. Trackbacks are enabled in options.
Thanks,
SueTrackbacks are enabled in options.
No, what is enabled in the Options is irrelevant.
See, Trackbacks and Pingbacks are enabled or disabled on a Per Post basis. The setting in the Options is only the default setting for posts. Changing it doesn’t change the setting on old posts, only on posts made after you change it.
What is the actual setting on the individual Post in question? You can see this by editing the Post and looking in the upper right hand corner. See if Allow Pings is turned on for the post itself.
Hi Otto,
yes, pings are allowed. for what it is worth, trackbacks have been checked in my options from the beginning, so I expected to see pings allowed in the post. What next?
Thanks,
SueNothing is next. That’s it.
The code whooami gave you above will put the trackback link in the page. Period. No checkboxes anywhere will stop it.
The code used by the default theme only puts the trackback link onto the page when the checkboxes are checked, because it has if statements designed to do exactly that.
So, it sorta depends on what code you’re using, but if you are using one of those, and the checkboxes are checked, then the trackback link is on your page. If it’s not on your page, then you’re doing it wrong. We can’t tell you what to fix because we have absolutely no idea what you’re doing wrong.
The topic ‘Trackbacks and Pingbacks’ is closed to new replies.