MeisterGit / wordpress-java

Automatically exported from code.google.com/p/wordpress-java
Other
0 stars 0 forks source link

Method wp.getPost_type() returning null instead of "listinings" #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call this method #wp.getPost like this:

Page recentPost = wp.getPost(73);
System.out.println("Base post type: " + recentPost.getPost_type());

What is the expected output? What do you see instead?
Its expected to see this in log: "Base post type: listings"
But instead of this i get "Base post type: null"

What version of the product are you using? On what operating system? Which 
wordpress version?
wordpress-java 0.5.1, Windows 7, WordPress 3.4.2. 

Note:
I try create a new Post with the type "listings" instead to retrieve an 
existing post and use this postType "listings" but i have the error:
"Exception in thread "main" redstone.xmlrpc.XmlRpcFault: Invalid post type"

Original issue reported on code.google.com by wagnerab...@gmail.com on 22 Oct 2012 at 5:54

GoogleCodeExporter commented 9 years ago
This is a new feature of wordpress, not currently supported by current version 
of the API. I'm working on it but it may take some time to finalize to a new 
release.

Original comment by c...@bican.net on 24 Oct 2012 at 12:23

GoogleCodeExporter commented 9 years ago
Thats perfectly fine! Maybe i can help you in development.. with some patches, 
etc...

Original comment by wagnerab...@gmail.com on 24 Oct 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Im interested to help on this too, I have created a new custom post type name 
book, but I cant create this kind of post, I try to setPost_type("book") 
without success

Original comment by fabio.ol...@gmail.com on 6 Sep 2013 at 2:27

GoogleCodeExporter commented 9 years ago
It's not supported yet, will support soon.

Original comment by c...@bican.net on 6 Sep 2013 at 11:24

GoogleCodeExporter commented 9 years ago
any updates kind sirs? need this or i need to find a new library i guess.

Original comment by elli...@finitemind.com on 10 Mar 2014 at 5:15

GoogleCodeExporter commented 9 years ago
As soon as I can find the means and opportunity, I'll do my best to support 
newer options to xml-rpc url. Until then, I welcome patches. Thanks.

Original comment by c...@bican.net on 10 Mar 2014 at 7:52