WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7744 closed defect (bug) (fixed)

XML-RPC needs a method to expose a list of all the post tags

Reported by: josephscott Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: tags, xmlrpc
Focuses: Cc:

Description

We have means for exposing post categories, but no way for exposing all of the post tags. Perhaps a wp.getTags that would be similar to metaWeblog.getCategories?

Attachments (2)

xmlrpc.php.diff (1.7 KB) - added by josephscott 6 years ago.
wp-includes--wlwmanifest.xml.diff (381 bytes) - added by josephscott 6 years ago.

Download all attachments as: .zip

Change History (6)

josephscott6 years ago

comment:1 josephscott6 years ago

Patch to add wp.getTags method to XML-RPC. Returns an array of structs, each struct looks like:

{
  "count"     = 1;
  "html_url"  = "http://localhost/~joseph/wp/trunk/?tag=blue";
  "name"      = "blue";
  "rss_url"   = "http://localhost/~joseph/wp/trunk?feed=rss2&tag=blue";
  "slug"      = "blue";
  "tag_id"    = 13;
}

comment:2 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9143]) List post tags via XMLRPC. Props josephscott. fixes #7744

comment:3 josephscott6 years ago

Added one line update to wlwmanifest.xml file so that Windows Live Writer will know that it can use wp.getTags.

comment:4 ryan6 years ago

(In [9218]) Update wlw manifest for get tags support. Props josephscott. fixes #7744

Note: See TracTickets for help on using tickets.