Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Forum name + link in the Topics list

  • @bb-gian

    Member

    Is there a way to display the Forum name + link in the Topics list?

    I tried with: <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>, but it doesn’t seem to work outside the loop.

    What I am trying to achieve is simply to have the name of the forum in the Topic list, so that one can view in which Forum that particular topic belongs, and be able to click on that link, if possible, to get to that forum. (But just the name would be already great).

    I really think that this is some bit of useful information when a user scans the list.

    Thanks for letting me know if you gor the right code in your pocket and to share it with me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @ohna

    Member

    Hi, bb-gian

    If you want this in “front-page” latest topic you can try this:

    <a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id); ?></a>

    or if you just want show all categories:

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

    @bb-gian

    Member

    Thanks Ohna, tha worked!

    Thanks a lot!

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