I am sorry, I converse a little bit English.
The primary 25 posts is uploaded, however have a 400 submit.
What’s the drawback?
The supply code:
foreach( movies( $_POST [ 'profile_id' ], $url ) as $key=> $video ) {
$args = array(
'post_status'=> 'publish',
'post_type'=> 'submit',
'meta_key'=> 'video_id',
'meta_value'=> $video [ 'id' ]
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {} else {
$postarr = array(
'post_title'=> $video [ 'title' ],
'post_status'=> 'publish',
'meta_input'=> array(
'video_id'=> $video [ 'id' ],
'thumb'=> $video [ 'thumb' ],
'video_url'=> $video [ 'url' ],
'video_preview'=> $video [ 'video_preview' ],
'value'=> $video [ 'price' ],
'length'=> $video [ 'duration' ],
'profile_id'=> $profile_id
)
);
wp_insert_post( $postarr );
}
wp_reset_postdata();
}
Thanks.