JoeBlogs
JoeBlogs copied to clipboard
Categories Descriptions Not Returned
I've noticed that when I try to retrieve categories information with "GetCategories()", "category.description" is not read properly, instead "category.name" is returned.
I would be happy to help maintaining this library, but I'm afraid I don't have neough experience
Nowhere in the codebase as of 8.27.13 is that string literal, much less setting category.description to category.name (literally or logically).
Can you post your code where you're implementing the call yourself?
This is the code I was using: ... var categories = _wpWrapper.GetCategories(); foreach (var category in categories) { categoriesTable[i, 3] = category.Description; ... }
I've actually found the answer to this issue here: http://codex.wordpress.org/XML-RPC_WordPress_API/Categories_%26_Tags#Return_Values where they say "string description: Name of the category, equivalent to categoryName. ", which makes me think that I was expecting "string categoryDescription" which I don't think it's implemented.
Besides that I noticed that this method is actually obsolete, so I don't think it's really an issue.
Yeah, category was phased out in favor of taxonomy I believe...
Yes. On Sep 12, 2013 5:42 AM, "Alex Brown" [email protected] wrote:
Yeah, category was phased out in favor of taxonomy I believe...
— Reply to this email directly or view it on GitHubhttps://github.com/alexjamesbrown/JoeBlogs/issues/32#issuecomment-24306085 .