How to get Relationship Field dual-column showing IDs instead of post titles in ACF plugin?

Question

by default, in the ACF plugin, the relationship field allows the user to choose a relation with another post in the default dual column view. In my case, I am using the Relationship field in order to connect dealer post-types to products.

Since I am importing Product data from CSV, I would need to import Relationship fields as well, and I am doing this using WP All Import Pro plugin. If I try to export a product in order to create the proper CSV format, I can see all set up relationships using the Dealer post-type title. I would need to type in CSV the dealers IDs instead of their full title, because the titles could change at some point.

Is that something possible through a function? Also, apart from dealers IDs, is it possible to achieve using another IDs set up using ACF (that is to say, another ID which is not the default one assigned by WP)?

For now, I am using Post Object return format, I’ve tried with Post ID return format but does not work (I am not sure if this could work since I am trying to do something out of my knowledge…).

Thank you in advance,
nflor

0
nflor 2 months 2021-08-03T05:14:20-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse