Rik de Vos
Rik de Vos

Reputation: 3517

Wordpress - Create post with plugin

is it possible to create posts with a wordpress plugin by entering a title, content, category and custom field (important)? Somehow I can't find anything about it in the documentation: http://codex.wordpress.org/Plugin_API or on Google.

Thanks, Rik.

Upvotes: 6

Views: 15459

Answers (1)

arunkumar
arunkumar

Reputation: 34053

The function for doing that is wp_insert_post.

I've always found WordPress reference section a bit of a PITA to navigate. So you might want to bookmark this page - http://codex.wordpress.org/Function_Reference It has a list of all (most) of the available functions for WordPress.

Upvotes: 21

Related Questions