This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Rank Math SEO Meta and focus words translation not working
Started by: marcD-48 in: English Support |
|
2 | 8 | 2 years, 5 months ago | |
|
Duplicate custom fields appearing in translation
1
2
Started by: marcD-48 in: English Support |
|
3 | 18 | 2 years, 7 months ago | |
|
Translating date fields in Elementor forms
Started by: marcD-48 in: English Support |
|
2 | 10 | 2 years, 9 months ago | |
|
Migration from Polylang over to WPML is stalling
1
2
Started by: marcD-48
in: English Support
Problem: - Create a backup of your database and website before proceeding. - Edit the file: /wp-content/plugins/migrate-polylang-to-wpml-0.4/classes/class-mpw_migrate_posts.php in your WordPress directory. - Find the following code: list($trid, $post_type) = $this->set_original_post_language_details($relation, $default_language_code); replace it with this one:
if( !is_array( $relation ) ) {
continue;
}
list($trid, $post_type) = $this->set_original_post_language_details($relation, $default_language_code);
if (count($relation) == 1) {
continue;
}
- Find the following code: $original_post_id = isset($relation['sync']) ? $relation['sync'][$default_language_code['polylang']] : $relation[$default_language_code['polylang']]; replace it with this one:
$original_post_id = (isset($relation['sync']) ? $relation['sync'][$default_language_code['polylang']] : isset($relation[$default_language_code['polylang']])) ? $relation[$default_language_code['polylang']] : reset($relation);
if ($original_post_id === NULL ) {
$original_post_id = reset ($relation);
}
- Save the file and rerun the import. |
|
3 | 16 |
2 years, 11 months ago
marcD-48 |