• Hi, I want you to show 4 pictures of rooms in the “Other Rooms” section.
    At the moment 3 images of rooms and two arrows are shown to be able to accede to the rest of images, can be seen in the capture: https://ibb.co/ZWRpB9k
    Well, I do not know how I can add another image, as in the image that I create (sorry for the design):
    https://ibb.co/tZdGz9v
    ? and avoid the user using the arrows to see the rest of the rooms, since the hotel only has 4 rooms.
    How can I get what I need from the editor?
    Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Thoa Kim

    (@thoakim)

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Hello, yes, but the image number four disappeared and only three are seen. I do not know if it was due to the latest update of wordpress or to what is due, but what was used on the other occasion, now does not work.
    I do not understand PHP, and I do not know how to edit the file that you suggested to me.
    You can give me some idea of how I should modify or where I should look for information.
    I imagine that you have a lot of work to attend to these details, but if you say that I should modify, I will do it.
    I think that 2 files must be modified:

    1- wp-hotel-booking\templates\content-single-room.php

    <?php
    /**
     * The template for displaying content single room.
     *
     * This template can be overridden by copying it to yourtheme/wp-hotel-booking/content-single-room.php.
     *
     * @author  ThimPress, leehld
     * @package WP-Hotel-Booking/Templates
     * @version 1.6
     */
    
    /**
     * Prevent loading this file directly
     */
    defined( 'ABSPATH' ) || exit(); ?>
    
    <?php
    /**
     * hotel_booking_before_single_product hook
     */
    do_action( 'hotel_booking_before_single_product' );
    
    if ( post_password_required() ) {
    	echo get_the_password_form();
    
    	return;
    } ?>
    
    <div id="room-<?php the_ID(); ?>" <?php post_class( 'hb_single_room' ); ?>>
    
    	<?php
    	/**
    	 * hotel_booking_before_loop_room_summary hook
    	 */
    	do_action( 'hotel_booking_before_single_room' );
    	?>
    
        <div class="summary entry-summary">
    
    		<?php
    		/**
    		 * hotel_booking_single_room_title hook
    		 */
    		do_action( 'hotel_booking_single_room_title' );
    
    		/**
    		 * hotel_booking_loop_room_price hook
    		 */
    		do_action( 'hotel_booking_loop_room_price' );
    
    		/**
    		 * hotel_booking_single_room_gallery hook
    		 */
    		do_action( 'hotel_booking_single_room_gallery' );
    
    		/**
    		 * hotel_booking_single_room_infomation hook
    		 */
    		do_action( 'hotel_booking_single_room_infomation' );
    		?>
    
        </div>
    
    	<?php
    	/**
    	 * hotel_booking_after_single_room hook
    	 */
    	do_action( 'hotel_booking_after_single_room' );
    	?>
    
    </div>
    
    <?php
    /**
     * hotel_booking_after_single_product hook
     */
    do_action( 'hotel_booking_after_single_product' ); ?>
    

    2- wp-hotel-booking \ templates \ content-single-room.php

    <?php
    /**
     * The template for displaying content archive room.
     *
     * This template can be overridden by copying it to yourtheme/wp-hotel-booking/content-room.php.
     *
     * @author  ThimPress, leehld
     * @package WP-Hotel-Booking/Templates
     * @version 1.6
     */
    
    /**
     * Prevent loading this file directly
     */
    defined( 'ABSPATH' ) || exit(); ?>
    
    <li id="room-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<?php
    	/**
    	 * hotel_booking_before_loop_room_item hook
    	 */
    	do_action( 'hotel_booking_before_loop_room_item' ); ?>
    
        <div class="summary entry-summary">
    
    		<?php
    		/**
    		 * hotel_booking_loop_room_thumbnail hook
    		 */
    		do_action( 'hotel_booking_loop_room_thumbnail' );
    
    		/**
    		 * hotel_booking_loop_room_title hook
    		 */
    		do_action( 'hotel_booking_loop_room_title' );
    
    		/**
    		 * hotel_booking_loop_room_price hook
    		 */
    		do_action( 'hotel_booking_loop_room_price' );
    
    		/**
    		 * hotel_booking_loop_room_price hook
    		 */
    		do_action( 'hotel_booking_loop_room_rating' ); ?>
    
        </div><!-- .summary -->
    
    	<?php
    	/**
    	 * hotel_booking_after_loop_room_item hook
    	 */
    	do_action( 'hotel_booking_after_loop_room_item' );
    	?>
    
    </li>
    
    <?php
    /**
     * hotel_booking_after_loop_room
     */
    do_action( 'hotel_booking_after_loop_room' ); ?>
    Plugin Contributor Thoa Kim

    (@thoakim)

    Hi

    You can use our paid service to custom this. Visit the support forum and create topic to discuss more https://thimpress.com/forums/forum/wp-hotel-booking

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks @thoakim, I’ll make a consultation, but I’ll make the budget I had by adding another function that WP Hotel Booking did not have and I needed to add.
    Thanks for the support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I show more rooms in the “Other Rooms” section?’ is closed to new replies.