Duplicate listings

Pending

Import WP Pro Updated 9 months ago 10 Replies

Michal asked 10 months ago on September 9, 2025 at 9:58 am

Hello,

I started importing real estate listings into my website, around 1000. The problem is that some of these listings are duplicated 3 to 4 times. I checked the XML feed, but there are no duplicate IDs. Each listing has its own ID, which I set up in WP Import.

Could you please help me with that?

Thank you very much.

Regards,

Michal

J

James replied Support Agent

10 months ago on September 9, 2025 at 11:50 am

Hi Michal,

Can you please export and attach your importer settings to this ticket by going to Tools > Import WP > Settings / Tools > Import / Export and select and export your importer as a JSON file.

And also attach your xml file.

Thanks
James

MG

Michal replied privately

10 months ago on September 9, 2025 at 11:55 am

MG

Michal replied privately

10 months ago on September 9, 2025 at 11:55 am

J

James replied Support Agent

10 months ago on September 9, 2025 at 12:48 pm

Thanks, are you able to share a temporary login? and can you let me know of an example of the duplicate ids

MG

Michal replied privately

10 months ago on September 9, 2025 at 12:51 pm

J

James replied Support Agent

10 months ago on September 9, 2025 at 1:11 pm

Thanks,

Looking at your importer history, i see alot of timeouts, this suggests you are having issues with your wordpress cron? https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/ , i would recommend scheduling your servers cron to run every minute.

I would also recommend under your "template fields" tab of the importer, disabling the ID field, as this is the post id which you cant import to, and instead add a custom field such as _property_id or similar, and then under the permissions step change the  unique identifier to template field, and type and select "_property_id" so that it is using this field as a reference to either insert or update records.

Then enabling the delete permission as this will remove any duplicate properties that have been previously imported.

I would also recommend backing up your files and database before running an import, to allow you to restore if needed.

James

MG

Michal replied privately

10 months ago on September 13, 2025 at 10:28 am

J

James replied Support Agent

9 months ago on October 6, 2025 at 8:21 am

Hi Michal,

Sorry this reponse managed to fall of my radar and i have only just noticed it, did you find a solution.

If not can you explain a little more about what you want to do with the value and suffix, you should be able to target these attributes and use them like you would with a nodes value.

James

MG

Michal replied privately

9 months ago on October 6, 2025 at 2:05 pm

J

James replied Support Agent

9 months ago on October 7, 2025 at 7:01 am

If you click on the value and suffix attributes in the importer it should create the selector for you e.g.

To get the attribute values would be something like (might be a different path to the attribute node at the start):

{/attribute/@name}
{/attribute/@value}
{/attribute/@suffix}

or if you wanted to target a specific one by name for example the "Tip stana"

{/attribute[@name="Tip stana"]/@value}
{/attribute[@name="Tip stana"]/@suffix}

If this is not what you mean, please let me know.