Skip to:
Content
Pages
Categories
Search
Top
Bottom

breadcrumbs missing

  • @jralston

    Participant

    I feel like I am missing something very basic here… why are breadcrumbs not showing at all? I used a custom template for the main bbpress page. I’ve added in <?php bbp_breadcrumb(); ?> into that custom template – nothing changed and no breadcrumbs appearing. Help? What am I missing here?

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

    Participant

    I have found the template tag: `/**
    * Output a breadcrumb
    *
    * @since bbPress (r2589)
    *
    * @param string $sep Separator. Defaults to ‘←’
    * @param bool $current_page Include the current item
    * @param bool $root Include the root page if one exists
    * @uses bbp_get_breadcrumb() To get the breadcrumb
    */
    function bbp_breadcrumb( $args = array() ) {
    echo bbp_get_breadcrumb( $args );
    }
    /**
    * Return a breadcrumb ( forum -> topic -> reply )
    *
    * @since bbPress (r2589)
    *
    * @param string $sep Separator. Defaults to ‘←’
    * @param bool $current_page Include the current item
    * @param bool $root Include the root page if one exists
    *
    * @uses get_post() To get the post
    * @uses bbp_get_forum_permalink() To get the forum link
    * @uses bbp_get_topic_permalink() To get the topic link
    * @uses bbp_get_reply_permalink() To get the reply link
    * @uses get_permalink() To get the permalink
    * @uses bbp_get_forum_post_type() To get the forum post type
    * @uses bbp_get_topic_post_type() To get the topic post type
    * @uses bbp_get_reply_post_type() To get the reply post type
    * @uses bbp_get_forum_title() To get the forum title
    * @uses bbp_get_topic_title() To get the topic title
    * @uses bbp_get_reply_title() To get the reply title
    * @uses get_the_title() To get the title
    * @uses apply_filters() Calls ‘bbp_get_breadcrumb’ with the crumbs
    * @return string Breadcrumbs
    */
    function bbp_get_breadcrumb( $args = array() ) {`

    But I haven’t any idea how to use it. I know I need to add the function into functions file but I need the actual function. Then I need to call that function in the template file. Suggestions?

    @jralston

    Participant

    My functions file doesn’t have any breadcrumb functions in it. Is the function supposed to be added there automatically? What I am trying to figure is what is the actual breadcrumb function and where should it be located?

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