- This topic has 3 replies, 2 voices, and was last updated 6 months, 3 weeks ago by .
I have the MetaBox AIO and used it to create a Custom Fields meta box that has a WordPress Post field. Everything is working fine as described in the documentation, but I want to know if there is a way to change the how the data of this field is saved.
This field saves post ID(s) in the database.
If field is not multiple, then a single post ID is saved in the database.
I would like to save the field data as a post_name (slug) instead of ID. This is to make it easier for me when I prepare CSVs to bulk upload posts. For this custom field, I'd rather enter the post_name (slug) in the CSV which is permanent and also clearer than just an ID number. But as things are now, I have to enter it as an ID in order for it to show up correctly.
Can the data of the Post field be saved as a post_name instead of id?
- You must be logged in to reply to this topic.