xmlrpc getRecentPosts comment count (2 posts)

  1. haddorp
    Posted 6 years ago #

    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.


  2. Joseph Scott
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic