Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Private: prefix from breadcrumbs


  • Chuckie
    Participant

    @ajtruckle

    During my upgrade to my site (using a new theme) I decided to use site wide breadcrumbs. I do this with Breadcrumbs NavXT. It supports bbPress.

    All is good. But, when I disabled the bbp style pack breadcrumbs I start to get the Private: prefix again in some instances on the breadcrumbs trail.

    Can I remove that with a hook or something?

    Thanks.

Viewing 1 replies (of 1 total)

  • Chuckie
    Participant

    @ajtruckle

    This is resolved:

    add_filter('private_title_format', 'my_private_title_format', 10, 2); function my_private_title_format($format, $post) { if($post instanceof WP_Post && ($post->post_type === 'forum' || $post->post_type === 'topic')) { $format = '%s'; } return $format; }

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