The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Breadcrumb NavXT
Root Page for Custom Post Type and WPML (3 posts)

  1. Aiwe
    Posted 3 years ago #

    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.


  2. Marco Chiesi
    Posted 3 years ago #

    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.

  3. Eli Lev
    Posted 3 years ago #

    Works grate with Polylang too.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Breadcrumb NavXT
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.