ThemeShaper Forums » Thematic

[closed]

Custom trackback callback?

(4 posts)
  • Started 3 years ago by Jose
  • Latest reply from Jose
  • This topic is not resolved
  1. Hi,

    There's a list_comments_arg() function (called in comments.php) that makes it possible to specify a custom callback in child themes, which allows a lot of customization in comments but with trackbacks there is not.

    This is how i specify a custom comments callback in my childtheme:

    function childtheme_list_comments_arg() {
    	$content = 'type=comment&callback=my_comments';
    	return $content;
    }
    add_filter('list_comments_arg','childtheme_list_comments_arg');

    Anyone knows if there is another way to overwrite the callback used for trackbacks or if the method i use for comments is not the best?

    Just to clarify i have no trouble at all editing comments, it's only trackback i don't know how to edit.

    Thanks!

    Posted 3 years ago #
  2. Bumping in case anyone know about this. :)

    Posted 3 years ago #
  3. The trackbacks callback is hard coded into the comments.php currently. I think we could use a filter or override for this also. For the time being you can copy the comments.php into your child theme and edit the callback to suit you.

    Look for:

    <?php wp_list_comments('type=pings&callback=thematic_pings'); ?>

    When we come up with an altyernartive I'll post a n update here.

    -Gene

    Posted 3 years ago #
  4. Thanks for the input. I'll try to stick with css for the time being then.

    An over-ridable list_pings_arg() function would be nice though for future releases. ^^

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.