WordPress::Post - DEPRECATED see WordPress::CLI instead


   use WordPress::Post;

   my $o= WordPress::Post->new ({ 
      proxy => 'http://this/xmlrpc.php', 
      username => 'lou', 
      password => '2342ss' 

      title => 'My Vacation Plans',
      description => 'Jump around. Sleep.',      


This module is DEPRECATD. See WordPress::CLI distribution instead.

The module WordPress did not work for me. This one works.

It lets you post to a wordpress blog/site.

A script is included with this distribution, wppost. It allows you to post content via the command line. You can also have picture attachments.



Argument is hash ref. Keys are 'proxy', 'username', and 'password'.

   my $o= new WordPress::Base ({ 
      proxy => 'http://this/xmlrpc.php', 
      username => 'lou', 
      password => '2342ss' 

Method resides in WordPress::Base.


Argument is hash ref. This is the 'struct' referred to in xmlrpc.

Possible keys are:

   title - string
   description - body of your post, string
   mt_excerpt - string
   mt_text_more - boolean?
   mt_allow_comments - boolean?
   mt_allow_pings - boolean?
   mt_tb_ping_urls - boolean?
   dateCreated - cant figure out the right string
   categories - array ref

Example use:

      title       => 'This is what happened',
      description => 'Morning is when I wake up.',
      categories  => ['life','sleep'],

Returns post id. This is useful if you want to know how to reach it via the web right away. For example if your address for the wordpress blog is, then a post returning id '3' would be reached via


Argument is abs path to file you want to post. Returns url via which the file can be reached.

This is useful in building more complex posts, with attachments, etc.


This module is in infancy. It works for me, and well.

I need to figure out how to determine the date, dateCreated strings such as 2006-12-31 fail, I also tried '2006-12-31 12:00:00', still fails.

Please contact the AUTHOR for any issues.


Leo Charre leocharre at cpan dot org


WordPress::CLI - replacement


To test I suggest you download the package and test it out by hand.

For testing you will need to have a word press blog set up. You must also know the proxy address, a username and password.


leocharre leocharre at gmail dot com


Copyright (c) 2010 Leo Charre. All rights reserved.


This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".


This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the "GNU General Public License" for more details.