Write new post directly into database
-
Hi,
once more I got an advanced problem/idea.
I got a wordpress for a company that often sends newsletters. There is a newsletter archiv on the homepage.
Now I wrote a simple php page to generate the mailings, so that I just need the content and don’t have to think about the layout. I got an own table for this page in the database of my wordpress to save the newsletters there and to access them directly from the web. (Makes it easier to send them)
Now I got the idea that I could write the content of the newsletter directly into wp_posts as a draft.
For this I write into the columnspost_author, post_content, post_title, post_status
1, '$email_html', '$post_titel', 'draft'
The query writes all infos into wp_posts, but I cant see the post in the wordpress administration.Has anyone an idea how to save my post into the db, so I can see the post in my wordpress administration. Or has someone a code snibblet for XMLRPC posting?
- The topic ‘Write new post directly into database’ is closed to new replies.