Posting via backend PHP script/code (2 posts)

  1. j8h9
    Posted 2 years ago #

    Is there a simple api call I can make from a backend script to do the following: create a post, set the category and content (format an image in the post based on category)?

    Does the email posting functionality allow the user to set the image and category?

    Before I start writing some mysql inserts into the wp_posts table, want to see if there's already a solution.

  2. j8h9
    Posted 2 years ago #

    So I found the wp function wp_insert_post()... If I create a php fileand include wp-includes/post.php, I can make the call -- does the function handle the connection to the DB or do I need to make that connection... Still reading.

Topic Closed

This topic has been closed to new replies.

About this Topic