The thing I am trying to achieve is to get data from a third party data source and display each piece of information as if it was a "post" in a WP theme. Now, the WP theme intrinsically works with custom post types and looks for a given property (yes, I am talking realty) by its name. So let's say the property was called "House on the beach", it would go ahead and look for it's slug in the database and if it ends up not finding it, it would automatically redirect to a 404. That's what I would like to prevent, without breaking the whole post system.
Specifically, when a user goes to http://example.com/index.php/property/23451
, I would like to handle the parameters myself as opposed to WP automatically searching for the property's slug "23451" in the database and redirecting to 404 upon failure.
I think it has to do with the WordPress loop and WP_Query. It seems to be failing and automatically redirecting to 404. Can I circumvent that action somehow ?
This is the first time I work with Wordpress, so any help would be highly appreciated.