On our site, Users shall create a list of destinations they like to receive a deal alert. New posts are associated with destinations as well and when a new post is published, all users that added that destination to their list shall receive a notification.
I implemented that by creating a custom taxonomy “destination” and a custom field for both users and posts where they can select the destinations they find interesting. Though I am having issues with the final implementation and would like to have your feedback if there is a smarter way to do this.
Right now, we the users adds a destination to his list in our frontend which starts an ajax request to this backend code:
And will return also the user which has the taxonomy with id 524 selected.
What am I doing wrong? How should I implement this properly that a) both posts and users have a list of destinations and b) there is an efficient way to query the few out of 1.000+ users that have selected certain taxonomies?
I highly appreciate your feedback, our project is close to deadline and I am not sure how to do this 😉
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users