Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Bigul 1 year ago.

Assisted by: Bigul.

Author Posts
June 27, 2024 at 3:01 pm #15845044

abhT

Background of the issue:
I am trying to duplicate all the information when adding a new property. However, I discovered that when I try to duplicate it into Arabic and other languages, some custom fields and other things do not get duplicated. URL: hidden link

Symptoms:
When duplicating a property into Arabic, some custom fields and other information do not get duplicated.

Questions:
Why are some custom fields and other information not getting duplicated when I duplicate a property into Arabic?
How can I ensure all information is duplicated correctly when adding a new property in Arabic?

June 27, 2024 at 3:34 pm #15845256

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please make sure the translation preference is set for these custom fields. We can check it from WPML>>Settings>>Custom Fields - hidden link

We can search the fields by their field ID there. So search for the fields having issues and verify the field's translation preference is set as *Copy* or *Translate*. Refer to the following documentation for more details.

https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

--
Thanks!

Bigul

June 27, 2024 at 5:26 pm #15845751

abhT

Thank you for your assistance!

I am unable to copy this part. I have tried many times, but it didn't work. I have to add it manually for each property in every language. Could you advise me?

Screenshot 2024-06-27 174556.png
June 27, 2024 at 5:36 pm #15845783

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. A couple of requests for tracking this.

1) Please share the URL of a couple of posts having the issue

2) Please fill the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

June 28, 2024 at 9:31 am #15850770

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details and login information. I created a private Property post for testing and the issue is reproducible. The result is same after setting *property_agent* field as *Copy* via WPML language configuration. Because it is set as *Translate* by the theme author via wpml-config.xml. Please check the attached images for more details.

hidden link

This looks like a compatibility issue. Therefore I have created a test site in our Sandbox Server for further debugging of this bug. Because reproducing the issues in a fresh/minimal installation will help us a lot in debugging and also we can troubleshoot the issue without affecting your sites.

Please try the following steps and make sure the bug is existing or is not on the sandbox site.

1) Click this URL to visit the Sandbox site backend - hidden link
2) Install & Configure WpResidence theme like your live site
3) Configure WPML like your live site
4) Create a Property post and set the agent fields as *Copy*
5) Duplicate the post to Arabic

--
Thanks!

Bigul

2024-06-28_14h54_14.png
2024-06-28_14h01_28.png
June 28, 2024 at 1:48 pm #15852435

abhT

I have already done on sandbox, but the issue still exists. Could you please check the sandbox link?

June 28, 2024 at 5:23 pm #15853587

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for reproducing the issue on the sandbox site. I will consult with our compatibility team for an expert opinion and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

June 30, 2024 at 9:21 am #15861898

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

The ticket is escalated to our compatibility team for further debugging. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

July 3, 2024 at 10:08 am #15883060

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

We are getting the expected results on the sandbox site after the following changing the code.

1) Go to */wp-content/plugins/wpresidence-core/post-types/* folder
2) Open the *property.php* file for edit
3) Scroll down to line 608 and make the following change

From

$picked_agent = get_post_meta($mypost, 'property_agent', true);

To

$picked_agent = get_post_meta($mypost, 'property_agent', true);
$picked_agent = apply_filters('wpml_object_id', $picked_agent, 'estate_agent', true);

But this requires further debugging. But our developers are getting file missing errors related to WpResidence theme. So one request. Please upload and install the WpResidence theme and its plugins files correctly in Sandbox site. You can switch to default theme and delete the WpResidence theme before uploading the fresh one.

--
Thanks!

Bigul

The topic ‘[Closed] Duplicate properties issue’ is closed to new replies.