Skip to:
Content
Pages
Categories
Search
Top
Bottom

ByddyPress REST API Comments endpoint


  • scottdev
    Participant

    @scottdev

    What’s the REST API endpoint to get activity with comments, Or what’s the endpoint to get comments?

    I’m using this endpoint getting the last 10 activity but no comments are associated

    https://example.com/wp-json/buddypress/v1/activity

    I’m using the latest WordPress and buddyPress version and have no problems, everything works fine,

    I can not share link to my company website for NDA contract reasons

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)

  • scottdev
    Participant

    @scottdev

    Any Help please?


    bikerflyeradmin
    Participant

    @bikerflyeradmin

    Hi. Newbie here. I recently discovered that if you add the parameter display_comments=threaded it will nest the comments in an array “comments” as a new entry in the response for each item.


    scottdev
    Participant

    @scottdev

    Hi Biker, your answer works, thank you very much for enlightening me, I checked documentation again, and it’s there, but I don’t know how I didn’t see it probably it wasn’t clear for me.
    I really appreciate your help, I’m pretty sure your answer will help others too

    display_comments string No comments by default, stream for within stream display,
    threaded for below each activity item.
    Default: ”


    vomixon519
    Participant

    @vomixon519

    test

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar