Advertisements

post_trackback_meta_box

Definition:
function post_trackback_meta_box($post) {}

Display trackback links form fields.

Parameters

  • object $post

Source code

function post_trackback_meta_box($post) {

	$form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" tabindex="7" value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />';

	if ('' != $post->pinged) {

		$pings = '<p>'. __('Already pinged:') . '</p><ul>';

		$already_pinged = explode("\n", trim($post->pinged));

		foreach ($already_pinged as $pinged_url) {

			$pings .= "\n\t<li>" . esc_html($pinged_url) . "</li>";

		}

		$pings .= '</ul>';

	}



?>

<p><label for="trackback_url"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>

<p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress sites they’ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>

<?php

if ( ! empty($pings) )

	echo $pings;

}

2593

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: