James Cooke Blog

Blog of tech and random.

Getting pingbacks & trackbacks working with Disqus & Wordpress

teamfublo:

Disqus is great for managing comments on Wordpress. However, it appears that most blogs don’t pick up the disqus trackback / pingback URL that Disqus advertises when you’ve set it to manage pingbacks for you. Instead, external blogs post directly to your Wordpress site and their pingbacks are stored in your Wordpress database.

This means that Disqus will not show your pingbacks because they are being stored in your WP comment table and not in the Disqus system.

This is the current solution we’re using on Fried My Little Brain to show pingbacks:

  1. Turn off Disqus for trackbacks.
  2. Use this great code snip from Marco Luthe to show pingbacks on posts.
  3. Then we’ve extended the formatting of Marco’s code to show the date, excerpt and link rather than just a link as before (code below).
  4. Ensure that Akismet is still running for inbound pingback spam filtering.

Our extended pingback formatting is as follows. This code should be used to replace Marco’s foreach loop between lines 22 and 30:

Download the excerpt.

Happy wordpressing!