I’m creating a purchase order form using ACF with a repeater field. I would like to somehow filter the query from the post object field based on the current user. I created a custom user meta for using it as a reference. Is there a way to do it?
The end goal, add a product (custom post type) filtered just for a specific user with metadata for a certain company.
I have a product post type for Company A (Item A1, Item A2) the repeater field should show only these items from A1 to A2. Then, Company B (Item B1, Item B2) same thing. My approach would be adding custom metadata to the user referencing it or add data for the products referencing the user.
Last week, we released ACF 5.10 🎉 This update includes the brand new HTML escaping feature, which helps to keep your ACF-generated content safe. Learn about this and other new goodies in the release post: https://t.co/p9gKUYmdDQ