Support » Fixing WordPress » get_comments by page

  • hello everyone,

    I am trying to get_comments but after a specific page. A user makes an API call to a set up webpage, and then we return the comments to them in a JSON object. what I want to do is only send comments from after a page number specified by the user (ie there are 10 pages of comments, the user wants 10 comments starting at page 4 so i would send back 10 comments starting from page 4).

    This is what I have so far
    where jo_show_comments is the post to get commetns from
    and jo_page is the page to start at

    [Code moderated as per the Forum Rules. Please use the pastebin]

  • The topic ‘get_comments by page’ is closed to new replies.