Home › Forums › ACF PRO › Save user input values per ACF post. › Reply To: Save user input values per ACF post.
Thank you so much for your help!
Yes, “offers” is a CPT.
I show them all to the user in list on a page.
I’d like to let the user click a button on an offer to select it to be archived, at which point the offer is removed from the page. (I haven’t decided if I want to use AJAX for that or a simple form submission.)
My original thought was that the user meta data would store the offer’s post ID, and the archive value for that offer post id.
Then I could filter the offers by those meta data records.
If I understand your code correctly, I would be saving an array of offer IDs in the user meta and then use that array to exclude the offers?
Makes sense, but may also become unruly if the list of offers become very large. Which it probably will. Which, I suppose my plan would too, since I would have new records for each archived offer.
I’ve worked a lot with WP, but never manipulated user meta before, so this is new to me.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.