JoeBlogs icon indicating copy to clipboard operation
JoeBlogs copied to clipboard

Categories Descriptions Not Returned

Open tad3j opened this issue 11 years ago • 4 comments

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

tad3j avatar Aug 15 '13 01:08 tad3j

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?

simon-duvall avatar Aug 27 '13 20:08 simon-duvall

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.

tad3j avatar Aug 28 '13 19:08 tad3j

Yeah, category was phased out in favor of taxonomy I believe...

alexjamesbrown avatar Sep 12 '13 09:09 alexjamesbrown

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 .

kevininspace avatar Sep 12 '13 11:09 kevininspace