-
Hello, I have a few custom fields added via ACF and I would like them included in the meetings export. Dashboard -> Meetings -> Import & Export -> Download CSV Is there some code I can add to my functions.php? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 33 replies
-
Hi @ckyoga, we don't have an easy way of doing what you are asking, as far as I know. You could probably achieve what you are wanting to do by overwriting our tsml_get_meetings() function with your own custom code in the functions file. There you would need to retrieve your ACF data from the database for each $post and then appending that data to the $meeting array (sort of the same way the attendance_option is added). Unfortunately the function code in question (tsml_get_meetings) is not wrapped with a function_exists() check so it can't be used in a child theme functions fille. Hope this helps... We don't normally recommend doing this as your custom code would be overwritten when the plugin receives an update. |
Beta Was this translation helpful? Give feedback.
-
Hi again @ckyoga, our team is looking at what may be a workable solution to your issue. We are running it through some tests and it may be available shortly if it works out. |
Beta Was this translation helpful? Give feedback.
-
That's Amazing! Thank you...I look forward to your reply. |
Beta Was this translation helpful? Give feedback.
-
hi @ckyoga yes once you get
you should see that column in the CSV |
Beta Was this translation helpful? Give feedback.
-
Hi Caroline @ckyoga, If you want the Admin Comments on every meeting, I suspect you would want your settings set like this: This appears to work correctly for us. Let us know @ckyoga if either of these suggestions work for you... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Here is my field - is this right? |
Beta Was this translation helpful? Give feedback.
-
yes, i am preparing a screenshot....one min |
Beta Was this translation helpful? Give feedback.
-
I am not seeing it. Including CSV download, screenshot of plugin version, edit screen of test meeting |
Beta Was this translation helpful? Give feedback.
-
You are right...the admin_comments did not export. |
Beta Was this translation helpful? Give feedback.
-
Caroline, I added the Hello theme to my test site along with a child Elementor theme for it. The admin_comments are still working correctly. So I think the theme you are using is OK. I do see there is an update available for Elementor Pro. Can we update that or has the license expired? |
Beta Was this translation helpful? Give feedback.
-
Life is sweet again, eh! |
Beta Was this translation helpful? Give feedback.
-
Ah! you were asking a question. No, I see no joy. |
Beta Was this translation helpful? Give feedback.
-
Hi Caroline, My test site pretty much mimics your site, except I'm getting the expected results in the meetings.csv downloads. I can see no obvious reason why your site isn't getting the same. I looked in the json cache file and can see your data for the admin column is not there. I'm sort of grasping at straws here. If you don't mind, I would like to restart from the beginning with a clean state. Sort of like a reboot where I recreate the test group and field. There has to be something I'm missing. |
Beta Was this translation helpful? Give feedback.
-
Just came across this topic. I also added custom fields with ACF. I do get them in my export. But what I want to do is fill the custom fields with the CSV. But That doesn't seem to work.
|
Beta Was this translation helpful? Give feedback.
So between Josh & me we sort of figured out that the two piece label when setting up ACF in your environment was not working. We added 'test' => 'Test' which worked fine, but after many fruitless attempts to get 'admin_comments' => Admin Comments' to work we settled on 'comments' => 'Comments' and that worked. There seems to be something in your environment that is causing our code to bomb when it sees the two-word label, or a hyphen or underscore in the ACF field name. Weird. But I think you've now got a work-around. Let us know if that will work for you...