Subject: | Possible bug when setting "excerpt"? |
Date: | Thu, 29 Oct 2009 16:02:13 -0400 |
To: | bug-WordPress-XMLRPC [...] rt.cpan.org |
From: | "Bryan K. Wright" <bkw1a [...] ayesha.phys.virginia.edu> |
Hi,
I've been using Wordpress::XMLRPC successfully to post items,
but until today I hadn't tried setting an "excerpt" for a posting.
I'm trying the following:
#!/usr/bin/perl
use strict;
use WordPress::XMLRPC;
use YAML;
# Post to WordPress:
my $wpconf = YAML::LoadFile(".wppost")
or die "Can't get WP authentication info: $!\n";
my $wprpc = WordPress::XMLRPC->new ({
proxy => $wpconf->{p},
username => $wpconf->{U},
password => $wpconf->{P}
}) or die "Can't connect to WP xmlrpc: $!\n";
my $postid = $wprpc->newPost({
title => 'Excerpt test',
excerpt => 'this is the excerpt',
description => 'this is the description'
}) or die "Can't post to WP: $!\n";
print "Successfully posted at $postid\n";
exit;
This completes successfully, as far as creating the new post with
the correct title and body, but the excerpt remains blank (as viewed from
the web-pased "edit posts" page, as well as the front page of the blog).
The WordPress version is 2.8.5, and WordPress::XMLRPC is 1.21.
Thanks in advance for any advice.
Bryan
--
========================================================================
Bryan Wright |"If you take cranberries and stew them like
Physics Department | applesauce, they taste much more like prunes
University of Virginia | than rhubarb does." -- Groucho
Charlottesville, VA 22901|
(434) 924-7218 | bryan@virginia.edu
========================================================================