Basically, I assume that I do not have the last Pro Version and it’s broken.

Closed

Import WP Addon - Advanced Custom Fields Updated 1 year ago 15 Replies

Alexandru asked 1 year ago on July 13, 2023 at 1:43 pm

1) When I want to delete imports, is not deleting is just asking if I want to delete and that’s it.
2) I assume that is not the last version because I do not have an ACF Repeater Field in my plugin that I have downloaded. Is any chance that I can import all the fields created by me separetely from ACF Pro Version. Thanks

Aa

Alexandru replied

1 year ago on July 13, 2023 at 1:44 pm

How to import using post_type with Custom Field? Thanks

J

James replied Support Agent

1 year ago on July 13, 2023 at 4:42 pm

Hi Alexandru,

1)

Are you able to look at the network tab or console tab of your web browser? if so can you look for the DELETE request sent to http://your.website/wp-json/iwp/v1/importer/{importer id} , does this request have a response code of 200 or something else?

How did you fix the previous error in your last ticket relating to the "an error occured" message as this could be related.

2)

To work with ACF fields you need to have the IWP ACF addon installed that can be downloaded from here: https://www.importwp.com/integrations/advanced-custom-fields/ 

If you have this installed and your fields are still not appearing in the custom field section or repeater / grouped fields are not showing on the template can you make sure you have added the code from here: https://www.importwp.com/docs/advanced-custom-fields-faq/#unable-to-find-acf-field-in-custom-field-list to show all fields and not just those relevent to the current import (some times fields dont show based on the display location).

If your fields are not showing still, are you able to export your field group from acf as json via ACF > Tools > Export and attach to this ticket.

To import items to a custom post type, during the create importer screen under the field "What are you wanting to import?" select "custom post type" , and then on the "post type" field choose the post type you are importing to.

With the importer created, you will find the custom fields section on the "3. Tempate fields" step, more information on importing acf field data can be found here: https://www.importwp.com/section/advanced-custom-fields/ , and information on importing custom field data can be found here: https://www.importwp.com/docs/how-to-import-wordpress-custom-fields/

James

Aa

Alexandru replied

1 year ago on July 13, 2023 at 10:27 pm

Still does not show the Acf fields even if I upload the addon plugin.

Aa

Alexandru replied

1 year ago on July 14, 2023 at 7:42 am

1) This is what I am receiving when I want to delete the import.

I put in functions.php this function - 

add_filter('iwp_acf/get_fields_filter', function ($args = []) {
    return [];
});

And still does not show the fields.

J

James replied Support Agent

1 year ago on July 14, 2023 at 9:35 am

Thanks, the image shows that your server is returning a 403 response code:

The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

Do you have any secuirty plugin installed that might be stopping this request?

In regards to your acf fields, can you please also 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.

Aa

Alexandru replied

1 year ago on July 14, 2023 at 10:00 am

I had a security plugin but it was not activated, however I have deleted it and now anyway is not working. These are my plugins atm.

2) I have completed some of the fields which are not repetear , and at the end when I run to import the file I got 6 error. How to sort it out ? 


J

James replied Support Agent

1 year ago on July 14, 2023 at 10:09 am

The errors show that there is no way to identify a record (so it does not know what it should do), can you please also 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.

So that i can see what fields you have set and can suggest a solution to set a unique field.

Aa

Alexandru replied

1 year ago on July 14, 2023 at 10:11 am

J

James replied Support Agent

1 year ago on July 14, 2023 at 10:25 am

Thanks, based on your importer, it looks like you have only set the custom fields, how do you want link to a record in the club post type?

In your acf export, it was only the post type and no fields attached to it, can you export the club field groups also?

Aa

Alexandru replied

1 year ago on July 14, 2023 at 10:32 am

These are all the data what I have created in the ACF. Fields Groups and Post Type.

J

James replied Support Agent

1 year ago on July 14, 2023 at 10:41 am

You mentioned repeater fields, there are no repeater fields in you acf field groups (screenshot attached), and all these fields appear in the custom field dropdown.

To fix the unique field setup, i would recommend setting a value for the title field, or do you have a reference in your csv/xml of another field to use?

Aa

Alexandru replied

1 year ago on July 14, 2023 at 10:50 am

I have the reference in the csv file, everything is there.
J

James replied Support Agent

1 year ago on July 14, 2023 at 10:54 am

Can you attach the csv so i have a look or what column in the csv is the reference, and what does it reference?

Aa

Alexandru replied

1 year ago on July 14, 2023 at 11:04 am

See the attachments.

J

James replied Support Agent

1 year ago on July 14, 2023 at 11:14 am

Based on the records in the CSV is the "Property_Name" column the title of each club record?

If so set the title field to {1} and then if you save and run the importer you should get records imported.