Brainstorming: WordPress and Fetch API
I need to display properties from an API connection. I have two pages layout, one display all properties (Archive like) and the other a selected property (Single like).
I am fetching the API with JS. And I need:
- Get property ID (from API) when selected (clicked) and go to the Single page, carry the ID and use it to connect to the API
/property/IDendpoint to fetch more info about this property.