Custom PHP Code
<?php
/**
* Template Name: Home Page
*/
get_header();
while ( have_posts() ) : the_post();
?>
<?php endwhile; ?>
<?php get_footer(); ?>
<ul class=”slides”>
<?php
$banner = new WP_Query( array( ‘post_type’ => ‘banner’,’order’=>’desc’,’orderby’=>’ID’) );
$banner = $banner->posts;
foreach($banner as $ban)
{
$ban_url_featured_image = wp_get_attachment_url( get_post_thumbnail_id($ban->ID));
?>
<li><h3 class=”sec-heading mb-5 mt-5 wow fadeIn a3 position-absolute text-white bottom-0 mx-4″><br> <span><?php echo $ban->post_content; ?></span></h3> <a><img src=”<?php echo $ban_url_featured_image; ?>” width=”1337″ height=”1000″ alt=”<?php the_title() ?>” class=”imageResponsive”></a></li>
<?php } ?>
</ul>
<h3 ><?php echo get_field(‘title_two’); ?></h3>
<p><?php echo get_field(‘description_five’); ?></p>
<img src=”<?php echo get_field(‘image_one’); ?>”>
<?php echo get_template_directory_uri(); ?>/images/logo.png
<a href=”<?php echo get_site_url(); ?>/amenities/” title=”Amenities”> Amenities </a>
Contact Short code
<?php echo do_shortcode(‘[contact-form-7 id=”381″ title=”Home contact”]’); ?>