Support » Plugin: Breadcrumb NavXT » Filter on Root Page for Custom Post Type

  • It looks like the current version is not yet supporting the translation (with WPML) of a root page set for a custom post type (please see this old topic).
    Unfortunately it seems there’s not an easy away to workaround this whitout modifying the plugin source code.
    Actually I am using the following code snippet at the end of find_type method of bcn_breadcrumb_trail class:

    if ( function_exists( "icl_object_id" ) ) {
      $root_id = icl_object_id( $root_id, 'page', true );

    I’d like to ask the devs to add the above code to the plugin source, or at least a generic filter on the root, i.e.

    $root_id = apply_filters( 'bcn_root_id', $root_id );

    Thank you.

  • The topic ‘Filter on Root Page for Custom Post Type’ is closed to new replies.