Support » Requests and Feedback » xmlrpc getRecentPosts comment count

  • We are using the xmprpc interface for generating a list of the recent posts (method getRecentPosts). This is working fine.

    Is it possible to retrieve the number of comments out of the response of getRecentPosts? Otherwise it would be necessary to call getComments or getCommentCount separately for each post. This wouldn’t be with good performance.

    One request… Posts and comments (or comment count) would be perfect.

    Thanks!

Viewing 1 replies (of 1 total)
  • At this point the most direct method is to call wp.getCommentCount for each post. You can do this in one request using system.multicall.

Viewing 1 replies (of 1 total)
  • The topic ‘xmlrpc getRecentPosts comment count’ is closed to new replies.