wp_insert_post limit 25
-
I’m sorry, I speak a little English.
The first 25 posts is uploaded, but have a 400 post.
What is the problem?
The source code:
foreach( videos( $_POST [ 'profile_id' ], $url ) as $key=> $video ) { $args = array( 'post_status'=> 'publish', 'post_type'=> 'post', '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' ], 'price'=> $video [ 'price' ], 'duration'=> $video [ 'duration' ], 'profile_id'=> $profile_id ) ); wp_insert_post( $postarr ); } wp_reset_postdata(); }
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_insert_post limit 25’ is closed to new replies.