WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Aiwe
    Member
    Posted 1 year 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.

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

  2. Marco Chiesi
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Works grate with Polylang too.

    tnx!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.