代码来源:CrossPostMeta Plugin
function cross_post($postid) {
$origin_link = get_permalink($postid);
require('p2m_config.php');
$post = & get_post($postid);
$struct['title'] = $post->post_title;
$struct['description'] = wpautop($post->post_content).$P2M_APPEND;
$cross_id = get_post_meta($postid, 'p2m_crossid', true);
if (empty($cross_id)) {
$method = 'metaWeblog.newPost';
$id = 0;
} else {
$method = 'metaWeblog.editPost';
$id = $cross_id;
}
实际上我想要的是:像下面的