Wordpress Bulk Publish & Custom Posts

6 replies
Hey guys,

I'm running an API plugin in Wordpress and have been working with a CSV import plugin to bulk upload custom posts that send a message through the API. All of my custom meta boxes fill out and the post is published, however, I have to manually "Update" each post for it to actually run the "cURL" (I believe that's what it's doing).

The plugin developer is awall, so I'm looking for some help.

Basically, when I publish each post individually, it will send the message through the API, but when I bulk upload I have to manually update each post for it to actually send, although its already "published". I need to be able to bulk publish if possible.

Any ideas would be great.

Thanks!
#api #bulk #custom #plugin #posts #publish #wordpress
  • Profile picture of the author Earnie Boyd
    What's the name of the plugin?
    Signature
    {{ DiscussionBoard.errors[5931112].message }}
  • Profile picture of the author sharpmedia
    I don't know what your plugin is doing, but you can likely accomplish the bulk posting using xmlrpc calls.

    Enable xmlrpc on your blog (settings | writing) and look up metaWeblog interface - it's pretty straightforward.

    If that's too complex, hopefully you have un-encrypted source code. You'll need to hire and have someone else do the mods for you.
    {{ DiscussionBoard.errors[5978935].message }}
    • Profile picture of the author craigslistleedz
      Originally Posted by sharpmedia View Post

      I don't know what your plugin is doing, but you can likely accomplish the bulk posting using xmlrpc calls.

      Enable xmlrpc on your blog (settings | writing) and look up metaWeblog interface - it's pretty straightforward.

      If that's too complex, hopefully you have un-encrypted source code. You'll need to hire and have someone else do the mods for you.

      I've had some more time to look at it and the plugin is doing everything its supposed to be doing. However, I don't know if this is affecting it, but it seems there is a submit function (jquery) that appears to be the function that triggers the hook.

      So, if I automatically add posts without manually clicking publish the post will still turn from auto-draft to publish, but doesn't actually hook. However, if I manually click publish, the plugin will trigger the hook.

      I did some research on metaWeblog interface, but I'm clueless as to how to get that to work.

      In theory, bulk adding posts through CSV importer should make all of my posts active, I just can't get these hooks to trigger the hook without going through them one by one and clicking update.

      Any help would be greatly appreciated!
      {{ DiscussionBoard.errors[6005492].message }}
  • Profile picture of the author edynas
    Banned
    If you know the function that is triggered normally by the publish hook, why not add that call to that function to your bulk importer. Just think out loud

    HtH
    Edwin
    {{ DiscussionBoard.errors[6009053].message }}

Trending Topics