alexjamesbrown / JoeBlogs

Wordpress / Metaweblog API Wrapper
53 stars 40 forks source link

Categories Descriptions Not Returned #32

Open tad3j opened 10 years ago

tad3j commented 10 years ago

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

simon-duvall commented 10 years ago

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?

tad3j commented 10 years ago

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.

alexjamesbrown commented 10 years ago

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

kevininspace commented 10 years ago

Yes. On Sep 12, 2013 5:42 AM, "Alex Brown" notifications@github.com 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 .