我的源链接与此相关:
http://sample.com/entertainment/default.aspx?tabid=2305&conid=102950
http://sample.com/entertainment/default.aspx?tabid=2418&conid=104330
http://sample.com/entertainment/default.aspx?tabid=2429&conid=104264
http://sample.com/entertainment/default.aspx?tabid=2305&conid=102949
.
.
.
我缓存内容表单链接。我使用wp\\u insert\\u post将缓存内容从源站点发布到wordpress: $my_post = array(
\'post_title\' => "$title",
\'post_content\' => "$content",
\'post_status\' => \'draft\',
\'post_author\' => 1,
\'post_category\' => array(1),
);
wp_insert_post( $my_post );
我想把每个链接放在自定义字段和下一个缓存中,在发布到WP之前,检查自定义字段中的链接的新链接。如果链接重复,请防止插入内容。对不起,我的描述不好。