Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbpress template tags in wp


  • zurdog
    Participant

    @zurdog

    How do I call bbpress template tags inside of the wordpress theme files? For example, I’m in header.php of my wordpress theme, and would like to list the forums in the header. I found this code: bbp_list_forums(); but I’m not sure how to get it to work?

    I understand I can use widgets or use the admin with various slugs… but I’m wondering how to do this on the backend with code.

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

  • zurdog
    Participant

    @zurdog

    I had used the code (below) prior to posting here in the forum and it didn’t work for me…

    `
    bbp_list_forums(array(‘before’ =>’

      ‘,’after’=>’

    ‘,’link_before’=>’

  • ‘,’link_after’=>’
  • ‘,’count_before’=>’(‘,’count_after’=>’)',’count_sep’=>’,',’separator’=>’,',’forum_id’=>”,’show_topic_count’=>true,’show_reply_count’=>true,));
    `

    and it outputs nothing… what am I doing wrong? I put this in my header.php file in my wordpress theme directory.

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

You must be logged in to reply to this topic.