How to create a custom route in wordpress?


Staff member
I'm working on this wordpress site and trying to connect this website with an external API.

I need to create a custom route for reading properties, But so far I didn't find an answer.

The URL I'm trying to config is this one:

And it should point to a php template called (property-single.php).