bekar09
Member
Posted 2 years ago #
Hi Everybody,
I'm pretty new to wordpress. Can someone please help me by letting me know what tables are updated when a new post is made? As in suppose I want to write a post using a separate php file. How should I frame my sql query? What tables are updated when a new post is submitted?
Please help me. Thanks.
bekar09
Member
Posted 2 years ago #
lkinnyc
Member
Posted 2 years ago #
The table is wp_posts.
I am actually working on an external post creator right now and found this page to be very helpful:
http://codex.wordpress.org/Function_Reference/wp_insert_post
bekar09
Member
Posted 2 years ago #
Thanks lkinnyc,
I am actually in the process of writing a scrapper script which will fetch data from another website and in the process will write into the database. Could you please elaborate a little more about your 'external post creator' as in whether it will store images also or not in the database and also the query that you're running?
Thanks.
[moderated--bump removed. Please refrain from bumping as per Forum Rules]