Support » Fixing WordPress » “If Trackback enabled” function?

  • I currently use the following at the bottom of my posts to tell users I support Trackbacks:

    <a href="<?php trackback_url(); ?>" title="Trackback URI. Copy and paste this into your own post to create a trackback."> <?php trackback_url(); ?></a><br>

    My older posts do not allow trackbacks to protect against spam and… well, just because. Is there a function I can wrap my code in such that [pseudo-code]

    If this post has trackbacks enabled then

    Thanks
    http://lee.org/blog

Viewing 3 replies - 1 through 3 (of 3 total)
  • That’s not really pseudocode… more like logic…

    I’m looking for “If the current post has trackbacks enabled, then display the trackback URL.”

    Is there any such WP function?

    I figured it out. The code was in WordPress Default Template.

    <?php if ('open' == $post->ping_status) { ?>
    <a>" title="Trackback URI. Copy and paste this into your own post to create a trackback."> <?php trackback_url(); ?></a>
    <?php } ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“If Trackback enabled” function?’ is closed to new replies.