Please refrain from bumping as per the forum rules.
You can find information on the WordPress cron functions here.
Here’s a few quick links for scheduling cron events.
http://codex.wordpress.org/Function_Reference/wp_schedule_event
http://codex.wordpress.org/Function_Reference/wp_schedule_single_event
Beyond the docs that’s all i know, i havn’t written anything using the cron process myself.
Ok fair enough about the bumping. I’ve always found on this forum that yu have to bump for it to get noticed. Next time I won’t. I’ll check out the links in a bit š
Ok I’ve finally had a chance to look into it. I’ve looked through those posts and seen what they do but I don’t think they’re what I need to do. I need a way to create a post via php that will have the category, title, tags, excerpt and the body included in
http://codex.wordpress.org/Function_Reference/wp_insert_post
You could use that alongside the cron functions to automate the process. I’ve not used either the cron or insert post functions before myself, else i’d offer an example. Unfortunately you’ll have to figure out their usage yourself and/or alternatively have a search around..
Some related support topics.
http://wordpress.org/tags/wp_insert_post
^ That is exactly what I’m after. One question though which you may or may not be able to answer is, how do I actually ‘contact’ wordpress to add in the post. AKA where do I put the code?
Where you contacting it from?
I’m not sure i know how to answer your question.
Like how do I tell wordpress who I am as such. Like when yoiu deal with mysql you tell them the server address and a username and password. How do you do that with wordpress?
Do you mean how can you do it remotely and authenticate yourself with WordPress?
WordPress does have some remote publishing protocols.
Some info on the XML RPC.
http://codex.wordpress.org/XML-RPC_Support
Supported clients.
http://codex.wordpress.org/Weblog_Client
I don’t use any of these things myself so i can’t comment on them, but hopefully something there will help.
Sadly that’s not what I need. the one was exactly what I needed but it was for the blogger.com’s API rather then for just a normal blog. Do the mysql databases change at all? Because if not then I can just edit the mysql tables and do it that way
EDIT: Looks like this: metaWeblog.newPost is the thing I need to use but i can’t find any documentation on it hardly
Ok I’ve found a solution š Look at this and this. Works great. Only issue I’m having is a way to define the post’s thumbnail. Any ideas guys?
Ok found some more info. It looks like I need to use add_post_meta but I have no idea how to use it for the thumbnail