Skip to:

Return titles and links to all topics

  • dalton125


    I’ve been searching for a way to return the titles and links of every topic on my forum. I’m familiar with HTML and CSS, but a PHP novice, which I think is my downfall here.

    I found a call to

    <?php the_content();?>

    which seems to be generating the big grey box with a list of all the topics (image link:

    However, I just want to return the topic titles and links to each topic, not the entire box. I can’t seem to find / write a PHP method that does this, does anyone have any advice?

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

  • Robin W


    the screen you show is from a number of templates.

    are you looking to replace these with just a list of topics, ie hide all the rest, or do this in addition to this?



    Replace it with just a list of topics, yes. I have bbPress 2.6.6, and I haven’t changed the theme, so I’m assuming I’m using whatever the default theme is.

    Robin W


    ok, that’s development rather than support.

    so you will need to alter templates and put these in your child theme.

    look for

    does topic list headers
    calls loop-single-topic
    lists each topic in the forum, last post and freshness
    lists topic content

    so for each find the file

    transfer this to your pc and edit

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above

    bbPress will now use this template instead of the original

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