Hotels Demosite

Live Demo and Testing Environment

đź“ť Note: You can view a live, working version of the hotel listings demo explained below by visiting this page. This demo showcases a functional hotel listing website built with the MPG plugin.

If you'd like to test how this setup looks and works directly from the WordPress dashboard with MPG already installed and configured, you can spin up a live version of WordPress. This version will be available for 4 hours and allows you to explore the setup in detail. You can access the live demo environment by clicking here.

đź“ť Note: The InstaWP environment will allow you to interact with the MPG plugin and view how it is configured within WordPress, providing hands-on experience with the project setup.

Step-by-Step Guide for Hotels website Setup

This guide will walk you through how to set up a hotels website using the MPG plugin. You will learn how to configure your project, generate pages dynamically, and customize pages of hotels based on specific criteria (e.g., stars, ratings, location, etc.).

1
Navigate to MPG > Create New and create a new project.

Here is how the MPG project setup looks, with important fields you need to configure:

2
Select source: Set Source Type to Direct Link. Provide the Direct link to your Google Sheet or file containing the hotels data.
Here is the spreadsheet used in this project: Hotels Source File. Make sure to click Share in Google Sheets and use the link ending in ? usp=sharing.
3
Project Settings: Set Entity Type to "Pages" and choose your Template. The template is for the individual hotel page, which will be explained further below.
4
Generate URLs: Set URL Format Template using shortcodes like {{mpg_hotel_name}} and {{mpg_address}} to create dynamic URLs, such as `/hotel-name-address/`. These URLs will be used for hotel pages.

Homepage Setup

Here is the full code for the homepage setup, displayed in a scrollable container:

<section style="padding: 50px 20px; background-color: #f9f9f9;">
  <div style="max-width: 1200px; margin: 0 auto; text-align: center;">
    <h1 style="font-size: 48px; font-weight: bold;">Welcome to Our Hotel Listings</h1>
    <p style="font-size: 20px; margin-bottom: 40px;">Discover the best hotels filtered by various criteria like rating, price, and more.</p>


    <!-- Top Rated Hotels Section -->
    <h2 style="font-size: 36px; margin-bottom: 20px;">Top Rated Hotels</h2>
    <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;">
      [mpg project-id="1" where="mpg_rating>4" order-by="mpg_rating" direction="desc" limit="9"]
      <div style="background-color: #fff; width: 300px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 20px;">
        <a href="{{mpg_url}}" style="text-decoration: none; color: inherit;">
          <img src="{{mpg_photo_url}}" alt="{{mpg_hotel_name}}" style="width: 100%; height: 200px; object-fit: cover;">
          <div style="padding: 15px;">
            <h3 style="font-size: 24px; font-weight: bold;">{{mpg_hotel_name}}</h3>
            <p style="font-size: 18px; color: #555;">Rating: {{mpg_rating}}/5 from {{mpg_number_of_reviews}} reviews</p>
            <p style="font-size: 20px; font-weight: bold; color: #27ae60;">Price: ${{mpg_price_per_night_usd}} per night</p>
          </div>
        </a>
      </div>
      [/mpg]
    </div>


    <!-- Newly Built Hotels Section -->
    <h2 style="font-size: 36px; margin-top: 50px; margin-bottom: 20px;">Newly Built Hotels</h2>
    <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;">
      [mpg project-id="1" where="mpg_built_date>2015" order-by="mpg_built_date" direction="desc" limit="9"]
      <div style="background-color: #fff; width: 300px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 20px;">
        <a href="{{mpg_url}}" style="text-decoration: none; color: inherit;">
          <img src="{{mpg_photo_url}}" alt="{{mpg_hotel_name}}" style="width: 100%; height: 200px; object-fit: cover;">
          <div style="padding: 15px;">
            <h3 style="font-size: 24px; font-weight: bold;">{{mpg_hotel_name}}</h3>
            <p style="font-size: 18px; color: #555;">Built in: {{mpg_built_date}}</p>
            <p style="font-size: 20px; font-weight: bold; color: #27ae60;">Price: ${{mpg_price_per_night_usd}} per night</p>
          </div>
        </a>
      </div>
      [/mpg]
    </div>


    <!-- Hotels not having other hotels close -->
    <h2 style="font-size: 36px; margin-top: 50px; margin-bottom: 20px;">Serene hotels (with no other hotels within a 2km radius)</h2>
    <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;">
      [mpg project-id="1" where="mpg_distance_from_closest_hotel_km>2" order-by="mpg_distance_from_closest_hotel_km" direction="desc" limit="9"]
      <div style="background-color: #fff; width: 300px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 20px;">
        <a href="{{mpg_url}}" style="text-decoration: none; color: inherit;">
          <img src="{{mpg_photo_url}}" alt="{{mpg_hotel_name}}" style="width: 100%; height: 200px; object-fit: cover;">
          <div style="padding: 15px;">
            <h3 style="font-size: 24px; font-weight: bold;">{{mpg_hotel_name}}</h3>
            <p style="font-size: 18px; color: #555;">Distance: {{mpg_distance_from_closest_hotel_km}} km from closest hotel</p>
            <p style="font-size: 20px; font-weight: bold; color: #27ae60;">Price: ${{mpg_price_per_night_usd}} per night</p>
          </div>
        </a>
      </div>
      [/mpg]
    </div>


  </div>
</section>


<br>
		

MPG Shortcodes Explained for Homepage

[mpg project-id="1" where="mpg_rating>4" order-by="mpg_rating" direction="desc" limit="9"]
This shortcode generates a list of up to 9 hotels where the rating is greater than 4 stars. The results are ordered by rating in descending order, meaning the highest-rated hotels will be displayed first. This section highlights top-rated hotels on the homepage.
[mpg project-id="1" where="mpg_built_date>2015" order-by="mpg_built_date" direction="desc" limit="9"]
This shortcode generates a list of up to 9 hotels built after 2015, ordered by the built date in descending order (newest first). This section showcases newly built hotels on the homepage.
[mpg project-id="1" where="mpg_distance_from_closest_hotel_km>2" order-by="mpg_distance_from_closest_hotel_km" direction="desc" limit="9"]
This shortcode generates a list of up to 9 hotels that are more than 2km away from the closest hotel. The results are ordered by distance, with the furthest hotels displayed first. This section highlights hotels in more serene and less crowded locations.

Dynamic Page Template Setup

Here is the full code for the template generating individual dynamic hotel pages, displayed in a scrollable container for easier reading:

<div style="border: 2px solid #27ae60; background-color: #ecf9f0; padding: 20px; border-radius: 10px; margin: 20px 0;">
  <div>[mpg-if where="mpg_rating>=4.9;mpg_number_of_reviews>=1000"]
    <p style="font-size: 18px; color: #333; text-align: center;">
      <strong>{{mpg_hotel_name}} is one of our top-rated hotels</strong>, boasting an outstanding rating of over 4.9 stars and more than 1,000 customer reviews. You can confidently book your stay, knowing that it consistently delivers exceptional experiences.
    </p>
  [/mpg-if]</div>
</div>
<section style="padding: 60px 20px; background-color: #f4f4f4; font-family: 'Helvetica Neue', sans-serif;">
  <div style="max-width: 1200px; margin: 0 auto; text-align: center;">


    <!-- Hotel Name and Location -->
    <h1 style="font-size: 42px; font-weight: 700; color: #333; margin-bottom: 10px;">{{mpg_hotel_name}}</h1>
    <p style="font-size: 20px; color: #777;">{{mpg_address}}, {{mpg_country}}</p>


    <!-- Hotel Image -->
    <div style="text-align: center; margin-bottom: 50px;">
      <img src="{{mpg_photo_url}}" alt="{{mpg_hotel_name}}" style="width: 100%; max-width: 900px; height: auto; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">
    </div>


    <!-- Hotel Rating and Reviews -->
    <div style="display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 30px; font-size: 22px; color: #444;">
      <span style="font-size: 48px; font-weight: 600; color: #303A9E;">{{mpg_rating}} / 5</span>
      <span style="font-size: 18px; color: #888;">based on {{mpg_number_of_reviews}} reviews</span>
    </div>


    <!-- Hotel Details (Centered with Icons) -->
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; text-align: center;">
      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-dollar-sign" style="color: #303A9E;"></i> Price per Night</h3>
        <p style="font-size: 18px; color: #444;">${{mpg_price_per_night_usd}} USD</p>
      </div>


      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-star" style="color: #FFD700;"></i> Hotel Stars</h3>
        <p style="font-size: 18px; color: #444;">{{mpg_stars}} Stars</p>
      </div>


      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-road" style="color: #303A9E;"></i> Distance from Closest Hotel</h3>
        <p style="font-size: 18px; color: #444;">{{mpg_distance_from_closest_hotel_km}} km</p>
      </div>


      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-calendar" style="color: #303A9E;"></i> Built Date</h3>
        <p style="font-size: 18px; color: #444;">{{mpg_built_date}}</p>
      </div>


      <!-- New Columns Added -->
      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-language" style="color: #303A9E;"></i> Languages Spoken</h3>
        <p style="font-size: 18px; color: #444;">{{mpg_languages_spoken}}</p>
      </div>


      <div>
        <h3 style="font-size: 20px; font-weight: 600; color: #555;"><i class="fas fa-concierge-bell" style="color: #303A9E;"></i> Hotel Services</h3>
        <p style="font-size: 18px; color: #444;">{{mpg_hotel_services}}</p>
      </div>
    </div>


    <!-- Amenities -->
    <div style="text-align: left; max-width: 900px; margin: 0 auto; margin-bottom: 40px;">
      <h3 style="font-size: 22px; font-weight: 600; text-align: center; color: #303A9E;"><i class="fas fa-swimming-pool"></i> Property Amenities</h3>
      <p style="font-size: 18px; color: #555;">{{mpg_amenities}}</p>
    </div>


    <!-- Hotel Description -->
    <div style="max-width: 900px; margin: 0 auto; text-align: left; margin-bottom: 50px;">
      <h3 style="font-size: 22px; font-weight: 600; color: #303A9E;"><i class="fas fa-info-circle"></i> About</h3>
      <p style="font-size: 18px; color: #555;">{{mpg_description}}</p>
    </div>


    <!-- Hotel Website Button -->
    <div style="text-align: center;">
      <a href="#" style="text-decoration: none; font-size: 20px; color: white; background-color: #303A9E; padding: 15px 30px; border-radius: 50px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: background-color 0.3s;">
        Visit Hotel Website
      </a>
    </div>
  </div>
</section>


<!-- Optional styling for icons if using Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">




[mpg_spintax  project_id="1" block_id="433"]<section style="padding: 50px 20px; background-color: #f9f9f9; border-radius: 15px; margin: 30px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);">  <div style="max-width: 1200px; margin: 0 auto; font-family: 'Arial', sans-serif; color: #333;">    <h2 style="font-size: 40px; font-weight: bold; text-align: center; color: #303A9E; margin-bottom: 20px;">      {Welcome|Greetings|Hello|Hi|Introducing}! {We are|Our team is|Our guests are} {delighted|thrilled|excited|happy} to {introduce|present|welcome you to} {{mpg_hotel_name}}.    </h1>        <p style="font-size: 18px; text-align: center; color: #777; margin-bottom: 30px;">      {Located in the {heart|center|prime location|most vibrant area} of|Situated in the beautiful city of} {{mpg_address}}, {{mpg_country}}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {This hotel|Our accommodation|This property} {is perfect for|offers a great choice for|caters to the needs of} {both business and leisure travelers|all kinds of visitors|guests looking for comfort and convenience}, {with|featuring|offering} {premium amenities|top-notch facilities|high-quality services} {such as|including} <strong>{{mpg_amenities}}</strong>. {Whether you’re seeking relaxation|If you need a break|For those looking to unwind}, {you’ll love|you’ll enjoy|you’ll be delighted by} our {spa|gym|restaurant|various amenities}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      <strong>{What truly makes us unique is|What sets us apart is|Our standout feature is} our unbeatable price:</strong> <span style="color: #303A9E;">${{mpg_price_per_night_usd}} USD</span> {per night|per stay|for a night’s accommodation}, {making it|offering|giving you} {exceptional value|great savings|a fantastic deal} {for such a luxurious stay|for this high level of service}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      Established in <strong>{{mpg_built_date}}</strong>, {our hotel combines|we offer a blend of|this property mixes} {modern comforts|contemporary amenities|luxurious touches} with {classic|timeless|historic} architecture. {With|Boasting|Featuring} a guest rating of <span style="color: #303A9E;">{{mpg_rating}} / 5</span> from <strong>{{mpg_number_of_reviews}} reviews</strong>, {we are dedicated to|we consistently strive for|our priority is} {ensuring you have an exceptional stay|offering the best service possible|delivering an outstanding experience}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Situated|Conveniently located|Ideally positioned} just <strong>{{mpg_distance_from_closest_hotel_km}} km</strong> from the nearest hotel, {{mpg_hotel_name}} {offers easy access to|is close to|provides quick routes to} {popular tourist attractions|local landmarks|major city highlights}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Choosing|Booking at|Staying at} {{mpg_hotel_name}} means {you’re not just booking a room|you’re getting more than just accommodation}; {you’re entering a world of comfort|you’re immersing yourself in an oasis of relaxation|you’ll be treated to a memorable stay}. {Book now|Reserve your room today|Make your reservation} and {experience|enjoy|delight in} {luxury and convenience|unmatched hospitality|everything we have to offer}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Our friendly staff is|Our dedicated team is|We are always} {ready to assist|here to help|available 24/7} to {make your stay flawless|ensure a seamless experience|take care of all your needs}. {We can't wait to welcome you|We're eager to host you|Your perfect stay awaits at} {{mpg_hotel_name}}.    </p>    <!-- Call to Action Button -->    <div style="text-align: center; margin-top: 30px;">      <a href="#" style="text-decoration: none; font-size: 22px; color: white; background-color: #303A9E; padding: 15px 30px; border-radius: 50px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: background-color 0.3s;">        {Visit Hotel Website|Explore More|Book Your Stay|Reserve Now}      </a>    </div>  </div></section>[/mpg_spintax]


<section style="padding: 50px 20px; background-color: #e9f1f7; border-radius: 15px; margin: 30px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);">
  <div style="max-width: 1200px; margin: 0 auto; font-family: 'Arial', sans-serif; color: #333;">


    <h2 style="font-size: 36px; font-weight: bold; text-align: center; color: #303A9E; margin-bottom: 20px;">
      Hotels with {{mpg_stars}} Stars
    </h2>


    <p style="font-size: 18px; text-align: center; color: #555; margin-bottom: 40px;">
      Below is a selection of hotels that share the same {{mpg_stars}}-star rating, offering similar level of quality and services. Explore and find your ideal stay!
    </p>


    <!-- Dynamic List of Hotels with the Same Number of Stars -->
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;">


      [mpg project-id="1" limit="8" where="mpg_stars={{mpg_stars}};"]
      
      <div style="background-color: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); padding: 20px; text-align: center;">
        <img src="{{mpg_photo_url}}" alt="{{mpg_hotel_name}}" style="width: 100%; height: auto; border-radius: 10px; margin-bottom: 15px;">
        <h3 style="font-size: 24px; font-weight: bold; color: #333;">{{mpg_hotel_name}}</h3>
        <p style="font-size: 18px; color: #777; margin-bottom: 10px;">Located in {{mpg_address}}, {{mpg_country}}</p>
        <p style="font-size: 20px; color: #303A9E;">${{mpg_price_per_night_usd}} per night</p>
        <p style="font-size: 18px; color: #555;">Rated {{mpg_rating}} / 5 based on {{mpg_number_of_reviews}} reviews</p>
        <a href="{{mpg_url}}" style="text-decoration: none; font-size: 18px; color: white; background-color: #303A9E; padding: 10px 20px; border-radius: 5px; display: inline-block; margin-top: 15px; transition: background-color 0.3s;">
          View Hotel
        </a>
      </div>


      [/mpg]


    </div>
    
  </div>
</section>


<br>
		

MPG Shortcodes Explained for Dynamic Page Template

[mpg-if where="mpg_rating>=4.9;mpg_number_of_reviews>=1000"]

This shortcode conditionally displays content only if the hotel has a rating of 4.9 or higher and more than 1,000 reviews. It allows you to highlight top-rated hotels with a large number of reviews, ensuring that only the best-reviewed hotels have special content displayed.

[mpg project-id="1" limit="8" where="mpg_stars={{mpg_stars}};"]
This shortcode generates a list of up to 8 hotels that share the same star rating as the current hotel being displayed. It’s useful for dynamically showing related hotels with similar ratings, allowing users to explore other hotels of the same quality.

These tags dynamically insert the corresponding data from your source file into the generated pages. For example:

  • {{mpg_hotel_name}} will insert the hotel’s name.
  • {{mpg_address}} will insert the hotel’s address.
  • {{mpg_country}} will insert the country where the hotel is located.
  • {{mpg_photo_url}} will insert the image URL for the hotel, displaying the hotel’s photo.
  • {{mpg_rating}} will display the hotel’s rating, typically out of 5 stars.
  • {{mpg_number_of_reviews}} will show the number of reviews the hotel has received.
  • {{mpg_price_per_night_usd}} will show the price per night in USD for the hotel.
  • {{mpg_stars}} will display the hotel’s star rating, such as 5 stars or 4 stars.
  • {{mpg_distance_from_closest_hotel_km}} will insert the distance between the hotel and the nearest hotel, in kilometers.
  • {{mpg_built_date}} will show the year the hotel was built.

These tags allow you to efficiently populate your dynamic pages with relevant information from your source file, ensuring consistency and accuracy across your website.

đź“ť Note: These shortcodes allow the template to dynamically adjust for each hotel entry, pulling relevant details from the dataset in real time.

Using Spintax in MPG Templates

đź“ť Note: The MPG plugin also supports Spintax to create dynamic, rotating content. This feature is useful to create variations in phrases, making the content feel more unique each time.

Here is an example of Spintax usage in this project:

[mpg_spintax  project_id="1" block_id="433"]<section style="padding: 50px 20px; background-color: #f9f9f9; border-radius: 15px; margin: 30px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);">  <div style="max-width: 1200px; margin: 0 auto; font-family: 'Arial', sans-serif; color: #333;">    <h2 style="font-size: 40px; font-weight: bold; text-align: center; color: #303A9E; margin-bottom: 20px;">      {Welcome|Greetings|Hello|Hi|Introducing}! {We are|Our team is|Our guests are} {delighted|thrilled|excited|happy} to {introduce|present|welcome you to} {{mpg_hotel_name}}.    </h1>        <p style="font-size: 18px; text-align: center; color: #777; margin-bottom: 30px;">      {Located in the {heart|center|prime location|most vibrant area} of|Situated in the beautiful city of} {{mpg_address}}, {{mpg_country}}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {This hotel|Our accommodation|This property} {is perfect for|offers a great choice for|caters to the needs of} {both business and leisure travelers|all kinds of visitors|guests looking for comfort and convenience}, {with|featuring|offering} {premium amenities|top-notch facilities|high-quality services} {such as|including} <strong>{{mpg_amenities}}</strong>. {Whether you’re seeking relaxation|If you need a break|For those looking to unwind}, {you’ll love|you’ll enjoy|you’ll be delighted by} our {spa|gym|restaurant|various amenities}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      <strong>{What truly makes us unique is|What sets us apart is|Our standout feature is} our unbeatable price:</strong> <span style="color: #303A9E;">${{mpg_price_per_night_usd}} USD</span> {per night|per stay|for a night’s accommodation}, {making it|offering|giving you} {exceptional value|great savings|a fantastic deal} {for such a luxurious stay|for this high level of service}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      Established in <strong>{{mpg_built_date}}</strong>, {our hotel combines|we offer a blend of|this property mixes} {modern comforts|contemporary amenities|luxurious touches} with {classic|timeless|historic} architecture. {With|Boasting|Featuring} a guest rating of <span style="color: #303A9E;">{{mpg_rating}} / 5</span> from <strong>{{mpg_number_of_reviews}} reviews</strong>, {we are dedicated to|we consistently strive for|our priority is} {ensuring you have an exceptional stay|offering the best service possible|delivering an outstanding experience}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Situated|Conveniently located|Ideally positioned} just <strong>{{mpg_distance_from_closest_hotel_km}} km</strong> from the nearest hotel, {{mpg_hotel_name}} {offers easy access to|is close to|provides quick routes to} {popular tourist attractions|local landmarks|major city highlights}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Choosing|Booking at|Staying at} {{mpg_hotel_name}} means {you’re not just booking a room|you’re getting more than just accommodation}; {you’re entering a world of comfort|you’re immersing yourself in an oasis of relaxation|you’ll be treated to a memorable stay}. {Book now|Reserve your room today|Make your reservation} and {experience|enjoy|delight in} {luxury and convenience|unmatched hospitality|everything we have to offer}.    </p>    <p style="font-size: 20px; color: #444; line-height: 1.6; text-align: justify; margin-bottom: 20px;">      {Our friendly staff is|Our dedicated team is|We are always} {ready to assist|here to help|available 24/7} to {make your stay flawless|ensure a seamless experience|take care of all your needs}. {We can't wait to welcome you|We're eager to host you|Your perfect stay awaits at} {{mpg_hotel_name}}.    </p>    <!-- Call to Action Button -->    <div style="text-align: center; margin-top: 30px;">      <a href="#" style="text-decoration: none; font-size: 22px; color: white; background-color: #303A9E; padding: 15px 30px; border-radius: 50px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: background-color 0.3s;">        {Visit Hotel Website|Explore More|Book Your Stay|Reserve Now}      </a>    </div>  </div></section>[/mpg_spintax]
			

Explanation:
This spintax code allows you to dynamically rotate between different phrases or words in the generated content, making it unique for each page. Here’s how it works:

  • {Welcome|Greetings|Hello|Hi|Introducing}
    This section will randomly select one of the listed greetings for each page.
  • {We are|Our team is|Our guests are}
    This will alternate between the variations to introduce the team or guests.
  • {{mpg_hotel_name}}
    This placeholder pulls the actual hotel name dynamically from the dataset.
  • {Located in the {heart|center|prime location|most vibrant area} of|Situated in the beautiful city of}
    It will rotate between descriptions of the hotel's location, ensuring variety in how the location is described.
  • {This hotel|Our accommodation|This property}
    This will alternate between the ways to refer to the hotel or property.
  • {What sets us apart is|Our standout feature is}, {both business and leisure travelers|all kinds of visitors}, and {Book your stay today|Reserve now}
    These phrases rotate similarly to create dynamic, engaging content by offering different ways to phrase the same information.

The spintax structure allows you to create unique content for each page, helping to improve user experience and making your site more dynamic and enhance SEO.

đź“ť Note: Make sure to check your project's project-id and replace it in the shortcodes accordingly.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us