Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter daddyke

    (@daddyke)

    Thanks jasonchuah4 your answer. I’m looking for only the Hotel Booking Search page order. I found this in the hotel-wp/wp-hotel-booking/search/list.php

    <ul class="hb-search-results">
    	<?php
    	foreach ( $results as $room ) {
    		hb_get_template( 'search/loop.php', array( 'room' => $room, 'atts' => $atts ) );
    	}
    	?>
    </ul>

    There is $atts also like in the file you suggested:

    $atts = shortcode_atts( array(
    			'room_type'   => '',
    			'orderby'     => 'title',
    			'order'       => 'ASC',
    			'number_room' => - 1,
    			'room_in'     => '',
    			'room_not_in' => '',
    		), $atts );

    But this has effect only on the room listing page. But maybe I have to look at this kind of settings around search files.

    Thanks again.

    Thread Starter daddyke

    (@daddyke)

    Hi,

    thanks, but they are obviously already overwritten.
    My question is where and how to set the list order based on IDs ascending and descending.
    Which file which line what code sould I use?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)