Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there any function to get the Topic URL?

  • @pkmaherwal

    Participant

    I am sending a custom email notification to the forum subscribers to notify any new topic created. Now I also want to send a Link to the newly created topic.
    I tried
    bbp_topic_permalink
    found it in the loop single topic file. But it showing blank. Even I tried to pass the topic_id as argument.

    I also tried
    bbp_get_topic_url()
    but it is also not working.

    It would be a great help if some one tell the exact function to get the url of the topic.

Viewing 1 replies (of 1 total)
  • @robin-w

    Moderator

    almost right! bbp_topic_permalink outputs the result you need the get version.

    use

    $topic_id = 28282 ;
    $topic_link = bbp_get_topic_permalink($topic_id) ;
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar