WordPress.org

Forums

A script that posts (8 posts)

  1. pupeno
    Member
    Posted 10 years ago #

    Hello, I hope this is the right forum to post.
    I need to write a script that would make some posts to a blog, that is, inject content. And I thought that WordPress was a nice option, but I don't know if it can do that. It seems it can, but... how ?
    Is there any documentation how to do it ? running some other script ? a XML-RPC call ? putting records into the DB ?
    Any help, URLs, etc is appretiated.

  2. Lorelle
    Member
    Posted 10 years ago #

    I just want to understand. You don't want to set up a WordPress site, you want to create a way of sending posts to a WordPress site?

    So someone else has a WordPress site and you want to get your information into the site so it shows up, like an aggregate service?

  3. Kafkaesqui

    Posted 10 years ago #

    Well, WordPress uses scripts to *inject* posts into itself, so it can be done. ;)

    If this script is just PHP running on the server where the WordPress install you want it to talk to resides, then you'd only need to include the wp-blog-header.php file for full WordPress access, and duplicate what functionality WordPress has for writing to the posts table. You may benefit from looking through what developer materials there are on the WordPress Codex:

    http://codex.wordpress.org/

    Not having much experience with XML-RPC (in WordPress or otherwise), I'd suggest looking at what resources are pointed to here:

    http://codex.wordpress.org/XML-RPC_Support

  4. whooami
    Member
    Posted 10 years ago #

    i was going to reply, but was confused. Like Lorelle, I thought it sounded like he wanted to insert content into someone else wp site aka a way to spam...

  5. pupeno
    Member
    Posted 10 years ago #

    No, I don't want to do spam, this is for a legimit project where the owner of the posting script is the owner of the blogs where the posts end.
    But, it is desirable to post accros servers, is that possible ?

  6. Kafkaesqui

    Posted 10 years ago #

    If posting across servers, then definitely look at what XML-RPC info is available from the link above. You may also want to join the Hackers list and see if the devs on it can suggest any resources:

    http://codex.wordpress.org/Mailing_Lists#Hackers

  7. t0m
    Member
    Posted 10 years ago #

    I'm looking for a solution to a similar problem.

    I'm using WordPress on a site as a news page. This news is based around a structured database and when I modify the database, I'd like to create a new article on the blog/news page to say that the database has been updated, with detail about the update.

    I'm therefore looking for an interface which allows me to create a new post, but without actually submitting it - because there is plenty of prose which must surround the post prior to it going live as a news item.

    Does anybody know a solution to this or shall I write a custom one? My system is already in PHP so I'm happy to meddle if necessary.

  8. vlbrown
    Member
    Posted 9 years ago #

    I needed this myself, so I combed the web, found something that sort of worked, and improved it :-)

    blogpost_wp.pl
    [WARNING: This link is to a Perl script directly and has not been verified as safe. Click at your own risk! - mod
    vlbrown - in the future, please supply your scripts as a zip and/or tar file. It would also be nice if you include in the post a little something about what you are linking to and how it works. - mod]

Topic Closed

This topic has been closed to new replies.

About this Topic