I am working on a Tourism website which displays multiple tours. I am using WordPress and have created a custom post type called Tours.
Inside every tour is a Book Now button which is created as a custom meta box. The Book Now button contains a link to a Third Party Booking System.
What I am looking to do is create a field on the homepage to show the most popular tour of the week. This will be judged by the number of clicks on the Book Now button inside each tour.
So, anytime a user clicks Book Now for a certain tour in the week, a count will be set to that tour and the tour with the highest number over a week, sits as a link on the homepage.
How to get this working via JavaScript or PHP?