WordPress email list import
-
Hello everybody,
I use the free version of the plugin, can you tell me if there is a way to import the WP email list into it.
Thank you
-
Hi @umberto69,
I’m afraid that there’s no such option directly in the plugin but using a custom script linked below might do the trick for you:
https://gist.github.com/wpmudev-sls/7c083c80069090c0ab22633ed4101dabCheers,
PredragHi,
you were very kind ??
Should I insert the php in mu-plugins?Yours sincerely
Hi @umberto69,
That is correct. You can add the PHP snippet as an MU plugin. Here is our doc reference on adding an MU plugin: https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Best,
Jonathan SHi,
thanks for the assistance.
I put the php in mu-plugin, but the list was not imported.Greetings
Hi @umberto69
I hope you are doing well.
The code requires you to use a CSV that has this column structure:
'email', 'first_name','last_name',
You also need to modify line 42 https://gist.github.com/wpmudev-sls/7c083c80069090c0ab22633ed4101dab#file-hustle-import-entries-php-L42 adding the path to the file, for example, if you use the same folder mu-plugins, you can just replace the line using
$csv_path = plugin_dir_path( __FILE__ ) . "hustle-import.csv";
Make sure the file name is hustle-import.csv
Let us know if you have any additional question.
Best Regards
Patrick FreitasHi,
i have never created a csv file and i don’t know php.
Anyway, I tried to create it with excel. Three columns as you indicated, I have widened the columns and I don’t know if this will affect.
Regarding the code I did not understand how the php line should be written, that is:
$ csv_path = plugin_dir_path (__FILE__). “hustle-import.csv”;
instead of __FILE__ what should I write?Greetings
Hi @umberto69,
Regarding the code I did not understand how the php line should be written, that is:
$ csv_path = plugin_dir_path (__FILE__). “hustle-import.csv”;
instead of __FILE__ what should I write?You only have to add your CSV file name, if the CSV file you have created is abc.csv the above line would be:
$ csv_path = plugin_dir_path (__FILE__). “abc.csv”;
You don’t have to make any changes to __FILE__ . It would be the same only the file name changes.
I hope this helps. Have a nice day ahead.
Best Regards,
NithinHi,
obviously I did not understand well, I have never compiled a CSV … I copy the values you wrote to me after which the ‘disappears
I am sending you the php and the csv file, would you be kind enough to let me know what am I wrong?
https://we.tl/t-iNgZSt92jX
Thank you!Hi @umberto69,
I checked the PHP file and the line 42 adjustment for file name is correct as it matches the CSV file name. On the actual CSV file, I’m not seeing any values under the columns, so if no data is added, it won’t import anything. Also make sure the actual column names are added without the quotation marks and comma.
For example, instead of ’email’, it should be just email
Best,
Jonathan SHi,
can’t import contacts into Hustle. I tried to put two contacts in the csv, but Hustle doesn’t see them. I am attaching the files with the changes you recommend.
https://we.tl/t-M4iTZQKsQ0
Thank youHi @umberto69
I created a step by step so it can help you.
First, there is a small change in the CSV file, you can get the new file here:
You can open the file in excel and save it as CSV after adding more data.
– Make sure the Hustle fields have the correct name to follow the file mapping:
https://monosnap.com/file/6I2sjp00d3a8dMtRPSnRehTKkIu9w2
– Update the line 40 and 41
Add the module name, default is PopUp, and the ID, ID can be found in the URL:
https://monosnap.com/file/vnazAM5r8jEoc3b55V8z1XLQhBhIhq
– Access the wp-admin using
yoursite.com/wp-admin/?import_entries
to trigger the code.– If everything works as expected, you will get the wished result.
https://monosnap.com/file/SasztAWuoM3VYa156XOY8ottU46AOF
Let us know the result you got.
Best Regards
Patrick FreitasHello @umberto69
It’s been a while since we’ve heard back from you so I’m marking this topic as resolved. Feel free to create a new topic if you’re still encountering issues. ??
Take care,
Dimitris
- The topic ‘WordPress email list import’ is closed to new replies.