WordPress.org

Ready to get started?Download WordPress

Forums

xmlrpc getRecentPosts comment count (2 posts)

  1. haddorp
    Member
    Posted 4 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.

    Thanks!

  2. Joseph Scott
    Member
    Posted 4 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