Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The custom template for the one-page style front page. Kicks in automatically.
- */
- get_header(); ?>
- <div id="primary" class="content-area">
- <div id="main" class="site-main">
- <section class="call-to-action">
- <div class="indent">
- <?php
- $query = new WP_query( 'pagename=book-an-appointment' );
- if($query->have_posts()) {
- while($query->have_posts()) {
- $query->the_post();
- echo '<div class="entry-content">';
- the_content();
- echo '<div>';
- }
- }
- wp_reset_postdata();
- ?>
- </div>
- </section>
- <section class="testimonial">
- <div class="indent">
- <?php
- $args = array('posts_per_page' => 3, 'orderby' => 'rand', 'category_name' => 'testimonials');
- $query = new WP_query( $args );
- if($services_query->have_posts()) {
- echo '<ul class="services_list">';
- while($services_query->have_posts()) {
- $services_query->the_posts();
- echo '<li class="clear">';
- echo '<a href="'.get_permalink().'" title="Learn more about '.get_the_title().'">';
- echo '<h3 class="service-title">'.get_the_title().' </h3>';
- echo '</a>';
- echo '<div class="services-lede">';
- the_content();
- echo '</div>';
- echo '</li>';
- }
- echo '<ul>';
- }
- wp_reset_postdata();
- ?>
- </div>
- </section>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment