An Wordpress code for posting from external script
₹600-1500 INR
Zamknięte
Opublikowano prawie 8 lat temu
₹600-1500 INR
Płatne przy odbiorze
hello i have simple code to post from external php script to the wordpress site. its below
<?php
require_once '[login to view URL]';
require_once ABSPATH . '/wp-admin/includes/[login to view URL]';
$title = ($_POST['post_title']);
$content = ($_POST['post_content']);
$user_id = 1;
// Create post object
$my_post = array(
'post_title' => $title,
'post_content' => $content,
'post_status' => 'publish',
'post_author' => $user_id,
'post_type' => 'post',
'tags_input' => $tags,
);
$id = wp_insert_post($my_post,true);
?>
well this code pretty much work for me to post from another source to wordpress but i have problem that post titles are the same atleast for 5 times with different content. so what i want is that it should execute with 5 same titles into one time and 5 diffferent contents to same post .
Hi,
i am ready to do it !!!
I have more than 5 and half years of professional experience in PHP MYSQL website developments and integrating API scripts .
Looking forward to discuss more details about the project and start work on this project ASAP.
awaiting for your reply
regards
Sri
Hello ,
I have resolved this type issue .I can assure you that I will definitely resolve this issue ..
Please ping me on chat for further discussion.
Thanks & Best Regards
Richestuser