Title: &#8220;If Trackback enabled&#8221; function?
Last modified: August 18, 2016

---

# “If Trackback enabled” function?

 *  [gadlen](https://wordpress.org/support/users/gadlen/)
 * (@gadlen)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/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]
 * 
 * Thanks
    [http://lee.org/blog](http://lee.org/blog)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [gadlen](https://wordpress.org/support/users/gadlen/)
 * (@gadlen)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/if-trackback-enabled-function/#post-262225)
 * 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?
 *  Thread Starter [gadlen](https://wordpress.org/support/users/gadlen/)
 * (@gadlen)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/if-trackback-enabled-function/#post-262252)
 * 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 } ?>
 *  Thread Starter [gadlen](https://wordpress.org/support/users/gadlen/)
 * (@gadlen)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/if-trackback-enabled-function/#post-262253)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“If Trackback enabled” function?’ is closed to new replies.

## Tags

 * [trackback](https://wordpress.org/support/topic-tag/trackback/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [gadlen](https://wordpress.org/support/users/gadlen/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/if-trackback-enabled-function/#post-262253)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
