WordPress.org

Ready to get started?Download WordPress

Forums

How to post directly via PHP? (3 posts)

  1. MrApples
    Member
    Posted 6 years ago #

    How would I create a post directly with PHP so that it goes through the process as a post normally would?

    Including plugins such as All-in-one-seo.

  2. fitztrev
    Member
    Posted 6 years ago #

    Do an include of wp-blog-header.php in your script. Then use the wp_insert_post() function. You pass it an array containing the post info. Check out the WP source for the function to see what you need.

  3. amypurple
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.