Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hot to get post id


  • mutoha
    Participant

    @mutoha

    I can get the “activity id” by the this code:
    $activity_id = bp_get_activity_id();

    So, What can I get “post id (at BBPress)” by writing what?
    $bbp_post_id = ???;

    However, because I want to acquire from “BuddyPress” instead of “BBpress” acquisition, bbp_get_reply_id() is not good.

    I would like to write in “BuddyPress” template (such as entry.php) and get “post id (at BBPress)”.

    Thanks.

Viewing 1 replies (of 1 total)

  • mutoha
    Participant

    @mutoha

    For example, bp_activity_action(); outputs:

    <a href="http://example.com/topic/test1/#post-123" class="view activity-time-since bp-tooltip" data-bp-tooltip="ディスカッションを表示"><span class="time-since">1日前</span></a>

    but I want to acquire only “#post-123”.

    I look forward to your reply.

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