show custom fields from a post in a pop-up
-
Hi there,
Got a peculiar request today which I have no idea on how to start! Basically, what I was asked to do is the following:
When viewing a post (which is information about a hotel), there should be a button/link/whatever that says “show contact details”
When the user clicks on this button, a pop-up will appear, showing the contact details (which are custom fields) for that hotel.
With my limited knowledge, I think the way to do this is to have a contact-info.php template, which can accept queries such as:
contact-information.php?hotel=sheraton
.What the customer is trying to achieve is to be able to see in Google Analytics when visitors click on the button/link to see the contact information.
Is such thing possible? For me this is a firt…
Any advice is greatly appreciated.
Cheers,
P.
- The topic ‘show custom fields from a post in a pop-up’ is closed to new replies.