Brainstorming: WordPress and Fetch API

Question

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/ID endpoint to fetch more info about this property.
0
stemon 4 months 0 Answers 13 views 0

Leave an answer