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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Root Page for Custom Post Type and WPML’ is closed to new replies.