Hi all
I need to create a function which is triggered when a new wordpress post is added to the posts table for a particular category.
The function will grab the title of the post and add it to a new table called 'newsites' whose fields are (postid, title, questions, users) which is already created.
The 'questions' and 'users' fields will be calculated using a separate function already created.
If the title of the post already exists it will update the record and if not it will add a new record.
Any ideas how I can do this and especially, how do I catch a new post being added.
Thanks
Jonathan