Support » Plugin: Breadcrumb NavXT » Root Page for Custom Post Type and WPML

  • Just share my solution to translate Root Page for Custom Post Type when using WPML: if your root page for CPT is no translated by WPML and link leads to main language page, just add $root_id = icl_object_id($root_id, page, true); right after $root_id = $this->opt['apost_' . $type_str . '_root']; 3 times under function “find_type”. Worked for me. Now I have Root Page for CPT with translations and correct links in breadcrumb trails in every language to corresponding translations.

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was having the same problem. Thanks Aiwe for sharing your solution.
    I’d like to ask to the plugin devs if it would be possible to add a filter hook on the $root_id value, so that we can apply this modification without hacking the code of the plugin. Thank you.

    Works grate with Polylang too.

    tnx!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Root Page for Custom Post Type and WPML’ is closed to new replies.