Hi @manish2311,
I have a CSV file of 5000 rows and I want to import random 20 rows in each post. Can I use this plugin to import multiple CSV row into one post?
Are you wanting to append multiple rows of data into the content of a single post? If so, we don’t have a built-in option to do it, but it’s technically possible with custom code and our API: https://www.wpallimport.com/documentation/action-reference/.
Let me know if I misunderstood.
Yes, I want to add multiple rows of data into the content of a single post.
I have 5000 rows.
I want to add 20 rows in each post.
Which will create 250 posts.
How can I do that?
Hi @manish2311,
Each record that belongs to the same post will need the same unique identifier, or the same value for record matching, in the import settings (step 4). Then, you’ll need to write custom PHP that uses our pmxi_article_data hook (see https://www.wpallimport.com/documentation/action-reference/#pmxi_article_data) to append the content from each record.
There is an example that you can modify as needed here: https://gist.github.com/386970072007ec166efb938bd829fd18.