WordPress Prevent 404 on missing custom post
The simplest way to handle this is to create a page with slug property which will be used to display all properties, and add a rewrite rule to handle requests for property IDs. // add property_id query var to hold ID of requested property function wpd_query_var( $query_vars ){ $query_vars[] = ‘property_id’; return $query_vars; } add_filter( … Read more