Advertisements

post_custom_meta_box

Definition:
function post_custom_meta_box($post) {}

Display custom fields form fields.

Parameters

  • object $post

Source code

function post_custom_meta_box($post) {

?>

<div id="postcustomstuff">

<div id="ajax-response"></div>

<?php

$metadata = has_meta($post->ID);

list_meta($metadata);

meta_form(); ?>

</div>

<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>

<?php

}

2567

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: