Skip to content

Instantly share code, notes, and snippets.

@rilwis
Forked from kutoi94/single-room.php
Last active September 24, 2023 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rilwis/8b30ae28789ff8a8a30273299835c28c to your computer and use it in GitHub Desktop.
Save rilwis/8b30ae28789ff8a8a30273299835c28c to your computer and use it in GitHub Desktop.
How to Build a Hotel Booking Website Using Meta Box (P3) - Template
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'single' );
the_post_navigation();
echo do_shortcode("[mb_frontend_form id='booking-fields' post_fields='title,content']");
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile;
?>
</main>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment