WordPress.org

Ready to get started?Download WordPress

Forums

bbPress
bbp_get_forum_title is pulling the topic title instead (4 posts)

  1. aravoth
    Member
    Posted 2 years ago #

    When I use bbp_get_forum_title to pull the forum title for display on the front page of my website, it pulls the topic title instead.

    The idea is to display the forum title like categories are displayed in wordpress.

    To do this I'm using breadcrumbs, so my code looks like..

    <?php $show_sep = false; ?>
    			<?php if ( 'forum' == bbp_get_forum_post_type() ) : ?>
    			<?php
    				$breadcrumbs = '<a href="' . bbp_get_forum_permalink( $parent->ID ) . '">' . bbp_get_forum_title( $parent->ID ) . '</a>';
                                    if ( $breadcrumbs ) :
    			?>
    			<span class="cat-links">
    				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s ' ),'', $breadcrumbs);
    				$show_sep = true; ?>
    			</span>
    			<?php endif; // End if $breadcrumbs ?>

    It's not working, it's displaying the topic title instead. In fact I went through several variations of this, several of them not using breadcrumbs, but every time I would use bbp_get_forum_title, or bbp_get_topic_forum_title, and I just couldn't get it to work.

    I'm wondering if there is something wrong with my code, or if anyone knows any other reason why bbp_get_forum_title would display the topic title instead.

    I really just started learning all this stuff recently, so I could really use a hint or two..

    Thanks for any help anyone can offer.

    http://wordpress.org/extend/plugins/bbpress/

  2. aravoth
    Member
    Posted 2 years ago #

    I have noticed that my permalink structure when viewing a forum topic looks like this http://test.website.com/topic/topic-title,

    could this have something to do with it? Shouldn't the permalink look like..

    http://test.website.com/forum-title/topic-title ?

    Honestly I'm kinda baffled. even bbp_get_topic_forum_title only pulls the topic title.

  3. @mercime
    Volunteer Moderator
    Posted 2 years ago #

    Did you try posting over at bbPress.org forums? Use same username and password to log in.

  4. aravoth
    Member
    Posted 2 years ago #

    Yes I did post over at bbpress.org, but to be honest I wasn't really sure were to ask a support question, since bbpress 2.0 is a wordpress plugin, I figured I would post here as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags