Strip Date_from and date_to from URL structure

Closed
CityTours - Hotel & Tour Booking WordPress Theme CityTours - Hotel & Tour Booking WordPress Theme January 10, 2019
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
Kelly R Support Agent
5 years ago

Hi,

Please edit /templates/hotel/loop-grid.php file and /templates/hotel/loop-list.php file.

You can find following code in those files.

$url = esc_url( add_query_arg( $query_args, get_permalink( $post_id ) ) );

And replace with following code.

$url = esc_url( get_permalink( $post_id ) );

Regards, C-Themes

michael may
5 years ago

Hi Soap Theme, 


In the example site : http://www.soaptheme.net/wordpress/citytours

For every hotel listing, a piece of javascript generates a datefrom and dateto after the URL. Can I delete this and where?

The urls look this http://www.soaptheme.net/wordpress/citytours/hotel/mariott-hotel/?date_from&date_to and i want them like this http://www.soaptheme.net/wordpress/citytours/hotel/mariott-hotel/

is that possible? I dont use the dates of the hotels... so can i strip it?


Please help.


Michael