The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to post directly via PHP? (3 posts)

  1. MrApples
    Posted 8 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
    Posted 8 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
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.