Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum name withing

  • I can’t seem to find a function that returns the name and link to the parent forum of a topic in this loop on the front page

    foreach ( $topics as $topic ) :

    Does anyone know what the function is?

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

  • _ck_
    Participant

    @_ck_

    You would use either

    forum_link($topic->forum_id);   // self echos

    or

    $link=forum_get_link($topic->forum_id);   // returns a string

    what you probably want is:

    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>

    Thanks for that

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