Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to access the meta data associated with a product and am running into issues when I try to access it via XML-RPC. I also can't utilize the php function xmlrpc_encode_request because my hosting doesn't support it. So I have created this request in xml below:

<?xml version="1.0" encoding="iso-8859-1"?> 
<methodCall> 
<methodName>wp.getPost</methodName> 
<params> 
<param><value>0</value></param> 
<param><value>username</value></param> 
<param><value>password</value></param> 
<param><value>169</value></param> 
</params> 
</methodCall>

This works for me when I send a request through for a product with a post ID of 169. However whenever I try to request the meta data for a product I just receive the post ID back. This was the XML I was using:

<?xml version="1.0" encoding="iso-8859-1"?> 
<methodCall> 
<methodName>wp.getPost</methodName> 
<params> 
<param><value>0</value></param> 
<param><value>username</value></param> 
<param><value>password</value></param> 
<param><value>169</value></param> 
<param> 
<value> 
<array> 
<data> 
<value>_tax_status</value> 
</data> 
</array> 
</value> 
</param> 
</params> 
</methodCall>

Any help you can give me is greatly appreciated!!!

Thanks in advance!!!!!

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.