Tag Info

New answers tagged

0

For simplicity and relevancy between this question and another question asked on Stack Overflow (wordpress - manually set the author of a post in php -- As linked by OP here on WPSE.). WordPress seems to force a value for the post_author while inserting or updating posts using wp_insert_post() and wp_update_post(). The way around it is to use the filter ...


0

Ok, after a little playtime, here is the answer: add_action('save_post', 'ocp_jobs_save_details'); function ocp_jobs_save_details(){ global $post; $genref = sanitize_title( dechex( time() ) ); if ( $post->post_type == 'job' ) { if ( $_POST['ocp_jobs_ref'] ) { $jobs_args = array( 'ID' => $post->ID, 'post_name' => strtolower( ...


0

A queue may be your solution. The individual items that should be imported can be put into a queue (e.g. in a database table) which can then be worked on 1 by 1 during the WP Cron process. See how other plug-ins handle job queues Hope that helps.


0

You might even like to check GravityForms or AdvancedCustomFields (ACF) to accomplish this. http://gravitywiz.com/use-gravity-forms-to-create-user-submitted-posts/ https://www.google.nl/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8&client=ubuntu#q=gravityforms%20frontend%20post%20create&es_th=1 ...



Top 50 recent answers are included