- This topic has 2 replies, 2 voices, and was last updated 2 years, 9 months ago by .
I’m loving the custom tables plugin… it is really changing the way that I do things!
I need to save arrays a comma-separated lists though (or pipe-separated lists to limit any issues associated with .csv export). I am using these tables as the backbone of an analytics platform that allows users to generate custom reports, graphs and charts based on a simple SQL query builder. The issue I am having is that any time I save anything other than a single value to that table, I have a nasty looking array to deal with in a custom query.
I was getting ready to write my own functions to handle this, but I though that it might be easier and better to do it at the plugin level instead of overriding it with my own functions.
I’m thinking that it should be pretty easy to explode the array on insert to the DB and then implode it any time it is needed for a standard WP function. Am I on the right track here? Is this something you would consider doing in the plugin itself instead of me adapting it after the fact?
Thanks again for the awesome plugins and support!
- You must be logged in to reply to this topic.