<?php get_template_part('templates/page', 'header'); $resourcesQuery = new WP_QUERY(array('post_type' => 'resource', 'order' => 'DESC')); ?> <section class="summary resources-summary"> <?php the_field('resources-summary'); ?> </section> <section class="card-wrapper"> <?php if ($resourcesQuery->have_posts()) { ?> <?php while ($resourcesQuery->have_posts()) { $resourcesQuery->the_post(); ?> <article class="card card--resource" id="<?php echo $post->post_name; ?> "> <p class="card-category"><?php the_field('resource-category'); ?> </p> <h2 class="card-title"><?php the_title(); ?> </h2> <p class="card-dop"><?php the_field('resource-dop');
function form($instance) { $defaults = array('title' => 'Course Stats Widget', 'course' => ''); $instance = wp_parse_args((array) $instance, $defaults); extract($instance, EXTR_SKIP); $title = esc_attr($instance['title']); $course = esc_attr($instance['course']); $students = esc_attr($instance['students']); $badgecertificates = esc_attr($instance['badgecertificates']); ?> <p><label for="bp-course-stats-widget-title"><?php _e('Widget Title', 'vibe'); ?> <input id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo esc_attr($title); ?> " style="width: 30%" /></label></p> <p><label for="bp-course-stats-dropdown"><?php _e('Select Course', 'vibe'); ?> <select id="<?php echo $this->get_field_id('course'); ?> " name="<?php echo $this->get_field_name('course'); ?> "> <option value="" <?php selected('', $course); ?> ><?php _e('All', 'vibe'); ?> </option> <option value="current" <?php selected('current', $course); ?> ><?php _e('Current Course (defaults to all)', 'vibe'); ?> </option> <?php $args = array('post_type' => 'course', 'posts_per_page' => -1); $the_query = new WP_QUERY($args); while ($the_query->have_posts()) { $the_query->the_post(); echo '<option value="' . get_the_ID() . '" ' . selected('current', $course) . '>' . get_the_title() . '</option>'; } wp_reset_postdata(); ?> </select> </label></p> <p><label for="bp-course-stats-level"><?php _e('Show Students Stats', 'vibe'); ?> <input class="checkbox" id="<?php echo $this->get_field_id('students'); ?> " name="<?php echo $this->get_field_name('students'); ?> " type="checkbox" value="1" <?php checked($students, 1, true); ?> /></label></p> <p><label for="bp-course-certificates-level"><?php _e('Show Badge/Certificates Stats', 'vibe'); ?> <input class="checkbox" id="<?php echo $this->get_field_id('badgecertificates'); ?> " name="<?php echo $this->get_field_name('badgecertificates'); ?> " type="checkbox" value="1" <?php checked($badgecertificates, 1, true); ?> /></label></p> <?php }
} wp_reset_query(); } //ASSIGNMENTS $paged = get_query_var('paged') ? get_query_var('paged') : 1; $the_assignment = new WP_QUERY(array('post_type' => 'wplms-assignment', 'paged' => $paged, 'meta_query' => array(array('key' => $user_id, 'compare' => 'EXISTS')))); if ($the_assignment->have_posts()) { ?> <h3 class="heading"><?php _e('Assignment Results', 'vibe'); ?> </h3> <ul class="quiz_results"> <?php while ($the_assignment->have_posts()) { $the_assignment->the_post(); $value = get_post_meta(get_the_ID(), $user_id, true); $max = get_post_meta(get_the_ID(), 'vibe_assignment_marks', true); ?> <li><i class="icon-task"></i> <a href="?action=<?php echo get_the_ID(); ?> "><?php the_title(); ?> </a> <span><?php if ($value > 0) { echo '<i class="icon-check"></i> ' . __('Results Available', 'vibe'); } else {
$current_featured_artist_id = get_field('current-featured-artist', $post->ID); $featuredArtistsQuery = new WP_QUERY(array('post_type' => 'featured-artist', 'order' => 'DESC', 'post__not_in' => array($current_featured_artist_id->ID))); ?> <?php if ($featuredArtistsQuery->found_posts > 0) { ?> <hr class="rule rule--thick" /> <div class="past-artists"> <h3 class="past-artists-title">Past Featured Artists</h4> <div class="past-artist-carousel"> <?php if ($featuredArtistsQuery->have_posts()) { ?> <?php while ($featuredArtistsQuery->have_posts()) { $featuredArtistsQuery->the_post(); ?> <div class="past-artist"> <?php $past_artist_headshot = get_field('artist-headshot'); ?> <div class="past-artist-headshot" style="background-image: url(<?php echo $past_artist_headshot['url']; ?> )"> </div> <div class="past-artist-title"> <?php echo $post->post_title; ?> </div>
<div class="content-area"> <div class="main"> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> </div> <section class="interests"> <h1>areas of interest</h1> <?php $interestLoop = new WP_QUERY(array('post_type' => 'interests', 'posts_per_page' => -1, 'orderby' => 'name', 'order' => 'ASC')); while ($interestLoop->have_posts()) { $interestLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $slug = $post->post_name; $link = site_url("/contact/#") . $slug; ?> <article class="interest"> <a href="<?php echo $link; ?> "> <h2> <div class="icon <?php echo $slug; ?>
the_post(); get_template_part('content', 'page'); } ?> </section> <aside style="float: right; margin-right: 100px; position: relative; text-align: right; bottom: 375px;"> <h1>community connectors</h1> <?php $leaderLoop = new WP_QUERY(array('post_type' => 'comcon', 'posts_per_page' => -1, 'orderby' => 'meta_value', 'order' => 'ASC')); $i = 1; while ($leaderLoop->have_posts()) { $leaderLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $image = get_the_post_thumbnail($post->ID, 'medium'); $major = get_post_meta($post->ID, 'comcon-form-major', true); $position = get_post_meta($post->ID, 'comcon-form-position', true); $email = get_post_meta($post->ID, 'comcon-form-email', true); ?> <div style="margin-bottom:-100px"> <?php echo $image; ?> <div class = "nameBox" style=" width: 300px; position: relative; right: 50px;
<h1 class="page-title">2015/2016 Board</h1> <div class="main"> <?php while (have_posts()) { the_post(); get_template_part('content'); } ?> </div> <section class="leader-board"> <?php $leaderQuery = new WP_QUERY(array('post_type' => 'leadership', 'posts_per_page' => -1, 'meta_key' => 'leader-form-order', 'orderby' => 'meta_value', 'order' => 'ASC')); while ($leaderQuery->have_posts()) { $leaderQuery->the_post(); $title = get_the_title(); $position = get_post_meta($post->ID, 'leader-form-position', true); $content = get_the_content(); $image = get_the_post_thumbnail($post->ID, 'small'); $slug = $post->post_name; ?> <article id="<?php echo $slug; ?> " class="leader"> <div class="image-wrap"> <?php echo $image; ?> </div>
?> <!-- <aside class="soapbox-cta"> <h2 class="soapbox-cta-title">Talk to us!</h2> <p>Leave us a comment if you’d like to continue the conversation. Tweet or post to FB with the sharing icons above each post. <a href="mailto:picassoprohub@gmail.com" class="soapbox-cta-link">Send us an email</a> if you would like to be considered as a candidate to have your own post in this space.</p> </aside> --> <?php $soapboxQuery = new WP_QUERY(array('post_type' => 'soapbox-article', 'order' => 'DESC')); ?> <section class="soapbox-wrapper"> <?php if ($soapboxQuery->have_posts()) { ?> <?php while ($soapboxQuery->have_posts()) { $soapboxQuery->the_post(); ?> <article id="<?php echo $post->post_name; ?> "> <a href="<?php the_permalink(); ?> "><h2 class="article-title"><?php the_title(); ?> </h2></a> <div class="article-credits"> <p class="article-date"><?php the_date();
get_template_part('templates/page', 'header'); $incubatorQuery = new WP_QUERY(array('post_type' => 'incubator', 'order' => 'ASC')); ?> <section class="summary incubator-summary"> <?php the_field('incubator-summary'); ?> </section> <hr class="rule rule--thick" /> <section class="incubator-wrapper"> <?php if ($incubatorQuery->have_posts()) { ?> <?php while ($incubatorQuery->have_posts()) { $incubatorQuery->the_post(); ?> <article class="incubator-project"> <h2 class="incubator-project-title"><?php the_title(); ?> </h2> <div class="incubator-project-content"> <?php the_field('incubator-project-description'); ?> </div> <div class="incubator-project-image"> <?php $incubator_feature_image = get_field('incubator-feature-image'); ?>
/** * 1.2 - form * Admin form code * * @param array $instance * * @return string|void */ public function form($instance) { $featured_id = $instance['feature']; //var_dump($instance); echo $this->generateCSS(); //generate CSS to page /** * @todo enqueue css */ ?> <script> jQuery(document).ready(function($){ fm_listen('widget-<?php echo $this->id; ?> '); $('.fm_widget').on('click',function(){ //console.log($(this).attr('id')); var id = "widget-"+$(this).attr('id'); fm_listen(id); }); }); </script> <div class="fm_widget" id="<?php echo $this->id; ?> "> <h3 class="title">1. Select a Post or Page</h3> <p> <label for="<?php echo $this->get_field_id('feature'); ?> "><strong class="description">Select a Page or Post to feature:</strong><br/></label> <select name="<?php echo $this->get_field_name('feature'); ?> " class="feature-me-select" style="width:100%;" id="<?php echo $this->get_field_id('feature'); ?> "> <option selected="selected" value="<?php echo esc_attr($instance['feature']); ?> "><?php $selected_feature = new WP_QUERY(array('p' => $featured_id, 'post_type' => array('post', 'page'), 'posts_per_page' => '1')); while ($selected_feature->have_posts()) { $selected_feature->the_post(); echo the_title(); if ($instance['type'] == "default") { $instance['title'] = the_title('', '', false); } } wp_reset_query(); ?> </option> <optgroup label="Pages"> <?php //PAGES $feature_list_pages = new WP_QUERY(array('posts_per_page' => '-1', 'orderby' => 'title', 'order' => 'ASC', 'post_type' => 'page')); while ($feature_list_pages->have_posts()) { $feature_list_pages->the_post(); ?> <option value="<?php echo the_ID(); ?> "><?php echo the_title(); ?> </option> <?php } wp_reset_query(); ?> </optgroup> <optgroup label="Posts"> <?php //POSTS $feature_list_posts = new WP_QUERY(array('posts_per_page' => '-1', 'orderby' => 'title', 'order' => 'ASC', 'post_type' => 'post')); while ($feature_list_posts->have_posts()) { $feature_list_posts->the_post(); ?> <option value="<?php echo the_ID(); ?> "><?php echo the_title(); ?> </option> <?php } wp_reset_query(); ?> </optgroup> </select> </p> <div class="divide"> </div> <h3 class="title">2. Choose Content Options</h3> <h4 class="title">Heading Title</h4> <p><input type="radio" name="<?php echo $this->get_field_name('type'); ?> " value="default" class="<?php echo $this->get_field_id('type'); ?> " id="<?php echo $this->get_field_id('type'); ?> _1" <?php if ($instance['type'] == "default" || $instance['type'] == "") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type'); ?> _1">Default Title</label> <!--No Title--> <input type="radio" name="<?php echo $this->get_field_name('type'); ?> " value="none" class="<?php echo $this->get_field_id('type'); ?> " id="<?php echo $this->get_field_id('type'); ?> _2" <?php if ($instance['type'] == "none") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type'); ?> _2">Hide Title</label> <!--/No Title--> <!--Custom--> <input type="radio" name="<?php echo $this->get_field_name('type'); ?> " value="custom" class="<?php echo $this->get_field_id('type'); ?> " id="<?php echo $this->get_field_id('type'); ?> _3" <?php if ($instance['type'] == "custom") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type'); ?> _3">Custom</label> <!--/Custom Title--> </p> <!--Custom Title Field--> <div id="<?php echo $this->get_field_id('title'); ?> "> <p><input placeholder="Enter a title." id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo esc_attr($instance['title']); ?> " style="width:100%;"/> </p> </div> <div id="<?php echo $this->get_field_id('subtitle'); ?> "> <p><input placeholder="Enter a subtitle." id="<?php echo $this->get_field_id('subtitle'); ?> " name="<?php echo $this->get_field_name('subtitle'); ?> " value="<?php echo esc_attr($instance['subtitle']); ?> " style="width:100%;"/> </p> </div> <!--/Custom Title Field--> <div class="divide"> </div> <h4 class="title">Body Copy</h4> <p> <!--Default Body--> <input type="radio" class="<?php echo $this->get_field_id('copy'); ?> " id="<?php echo $this->get_field_id('copy'); ?> _1" value="excerpt" name="<?php echo $this->get_field_name('copy'); ?> " <?php if (esc_attr($instance['copy']) == 'excerpt' || esc_attr($instance['copy']) == '') { ?> checked="checked"<?php } ?> /> <label for="<?php echo $this->get_field_id('copy'); ?> _1">Default <small>(Excerpt)</small> </label> <!--/Default Body--> <!--No Body--> <input type="radio" class="<?php echo $this->get_field_id('copy'); ?> " id="<?php echo $this->get_field_id('copy'); ?> _2" value="none" name="<?php echo $this->get_field_name('copy'); ?> " <?php if (esc_attr($instance['copy']) == 'none') { ?> checked="checked"<?php } ?> /> <label for="<?php echo $this->get_field_id('copy'); ?> _2">Hide</label> <!--/No Body--> <!--Custom Body--> <input type="radio" class="<?php echo $this->get_field_id('copy'); ?> " id="<?php echo $this->get_field_id('copy'); ?> _3" value="custom" name="<?php echo $this->get_field_name('copy'); ?> " <?php if (esc_attr($instance['copy']) == 'custom') { ?> checked="checked"<?php } ?> /> <label for="<?php echo $this->get_field_id('copy'); ?> _3">Custom</label> <!--/Custom Body--> </p> <div id="<?php echo $this->get_field_id('body'); ?> "> <p><textarea id="<?php echo $this->get_field_id('body'); ?> " name="<?php echo $this->get_field_name('body'); ?> " style="width:100%;" placeholder="Customize your content."><?php echo esc_attr($instance['body']); ?> </textarea></p> </div> <div class="divide"> </div> <h3 class="title">3. Choose Image Options</h3> <h4 class="title">Featured Image</h4> <p><input type="radio" id="<?php echo $this->get_field_id('use_image'); ?> _1" name="<?php echo $this->get_field_name('use_image'); ?> " value="t" <?php if ($instance['use_image'] == 't' || $instance['use_image'] == '') { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('use_image'); ?> _1">On <small>(default)</small> </label> <input type="radio" id="<?php echo $this->get_field_id('use_image'); ?> _2" name="<?php echo $this->get_field_name('use_image'); ?> " value="f" <?php if ($instance['use_image'] == 'f') { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('use_image'); ?> _2">Off</label></p> <!--<div class="<?php echo $this->get_field_id('image_preview'); ?> "><?php echo get_the_post_thumbnail($instance['feature'], array(150, 226)); ?> </div> --> <div class="divide"> </div> <h3 class="title">4. Customize CTA Link Options</h3> <h4 class="title">CTA Link Title <small class="description">Default is "Learn More"</small> </h4> <!--Link Title Options--> <p> <!--Default Link Title--> <input type="radio" name="<?php echo $this->get_field_name('type_link'); ?> " value="default" class="<?php echo $this->get_field_id('type_link'); ?> " id="<?php echo $this->get_field_id('type_link'); ?> _1" <?php if ($instance['type_link'] == "default" || $instance['type_link'] == "") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type_link'); ?> _1">Default</label> <!--/Default Link Title--> <!--No Link Title--> <input type="radio" name="<?php echo $this->get_field_name('type_link'); ?> " value="none" class="<?php echo $this->get_field_id('type_link'); ?> " id="<?php echo $this->get_field_id('type_link'); ?> _2" <?php if ($instance['type_link'] == "none") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type_link'); ?> _2">Hide</label> <!--/No Link Title--> <!--Custom Link Title--> <input type="radio" name="<?php echo $this->get_field_name('type_link'); ?> " value="custom" class="<?php echo $this->get_field_id('type_link'); ?> " id="<?php echo $this->get_field_id('type_link'); ?> _3" <?php if ($instance['type_link'] == "custom") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type_link'); ?> _3">Custom</label> <!--/Custom Link Title--> </p> <p><input type="text" name="<?php echo $this->get_field_name('linkText'); ?> " id="<?php echo $this->get_field_id('linkText'); ?> " value="<?php echo esc_attr($instance['linkText']); ?> " placeholder="Read More!, Act Now!" style="width:100%;"/></p> <!--/Link Title Options--> <div class="divide"> </div> <h4 class="title">Link Customization <small class="description">Default is Post/Page URL.</small> </h4> <!--URL Options--> <p> <!--Default URL--> <input type="radio" name="<?php echo $this->get_field_name('type_url'); ?> " value="default" class="<?php echo $this->get_field_id('type_url'); ?> " id="<?php echo $this->get_field_id('type_url'); ?> _1" <?php if ($instance['type_url'] == "default" || $instance['type_url'] == "") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type_url'); ?> _1">Default</label> <!--/Default URL--> <!--Custom Link Title--> <input type="radio" name="<?php echo $this->get_field_name('type_url'); ?> " value="custom" class="<?php echo $this->get_field_id('type_url'); ?> " id="<?php echo $this->get_field_id('type_url'); ?> _3" <?php if ($instance['type_url'] == "custom") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('type_url'); ?> _3">Custom</label> <!--/Custom Link Title--> </p> <p><input type="text" name="<?php echo $this->get_field_name('linkURL'); ?> " id="<?php echo $this->get_field_id('linkURL'); ?> " class="linkURL" value="<?php echo esc_attr($instance['linkURL']); ?> " placeholder="http://example.com, example.com, /" style="width:100%;" /></p> <!--/Link Title Options--> <div class="divide"> </div> <!--Link Heading--> <h4 class="title">Make the Heading Title a Link?</h4> <p><input type="radio" name="<?php echo $this->get_field_name('header_link'); ?> " value="true" class="<?php echo $this->get_field_id('header_link'); ?> " id="<?php echo $this->get_field_id('header_link'); ?> _1" <?php if ($instance['header_link'] == "true" || $instance['header_link'] == "") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('header_link'); ?> _1">Yes</label> <input type="radio" name="<?php echo $this->get_field_name('header_link'); ?> " value="false" class="<?php echo $this->get_field_id('header_link'); ?> " id="<?php echo $this->get_field_id('header_link'); ?> _2" <?php if ($instance['header_link'] == "false") { ?> checked="checked" <?php } ?> /> <label for="<?php echo $this->get_field_id('header_link'); ?> _2">No</label></p> <!--/Link Heading--> <div class="divide"> </div> <h3 class="title">Advanced</h3> <p><label for="<?php echo $this->get_field_id('class'); ?> "><strong>Custom CSS class:</strong><br/> <small>You can add a CSS class to add custom styling</small> </label> <input type="text" name="<?php echo $this->get_field_name('class'); ?> " value="<?php echo esc_attr($instance['class']); ?> " style="width:100%;"/> </p> <div class="divide"> </div> </div><!--/fm_widget--> <?php }
<?php } ?> </aside> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> <section class="sponsors"> <?php $sponsorsLoop = new WP_QUERY(array('post_type' => 'sponsors', 'posts_per_page' => -1, 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'sponsor-form-order')); while ($sponsorsLoop->have_posts()) { $sponsorsLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $image = get_the_post_thumbnail($post->ID, 'medium'); ?> <article class="sponsor"> <h3><?php echo $title; ?> </h3> <?php echo $image; ?> <p><?php echo $content;
<div class="content-area"> <div class="main"> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> </div> <section class="photos"> <?php $albumloop = new WP_QUERY(array('post_type' => 'fb-albums', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC')); while ($albumloop->have_posts()) { $albumloop->the_post(); $title = get_the_title(); $albumid = get_post_meta($post->ID, 'album-form-id', true); $albumlink = get_post_meta($post->ID, 'album-form-link', true); ?> <article class="album"> <h3><?php echo $title; ?> </h3> <?php echo do_shortcode('[fbalbum url="' . $albumlink . '" limit=8]'); ?> <a href="<?php echo $albumlink;
} ?> </aside> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> <section class="children"> <?php $childrenLoop = new WP_QUERY(array('post_type' => 'children', 'posts_per_page' => -1, 'orderby' => 'name', 'order' => 'ASC')); while ($childrenLoop->have_posts()) { $childrenLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $image = get_the_post_thumbnail($post->ID, 'medium'); ?> <article class="child"> <h3><?php echo $title; ?> </h3> <div class="thumbnail"><?php echo $image; ?> </div> <a class = "fancybox button" href="#child-bio-<?php
<div class="content-area"> <div class="main"> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> </div> <section class="updates"> <h1>updates</h1> <?php $updateLoop = new WP_QUERY(array('post_type' => 'updates', 'posts_per_page' => 5, 'orderby' => 'date', 'order' => 'DESC')); while ($updateLoop->have_posts()) { $updateLoop->the_post(); $title = get_the_title(); $date = get_the_date('F j, Y'); $content = get_the_content(); ?> <article class="update"> <h2><?php echo $title; ?> </h2> <h3><?php echo $date; ?> </h3> <p><?php echo $content;
if ($about_content_query->have_posts()) { while ($about_content_query->have_posts()) { $about_content_query->the_post(); the_content(); } } ?> </div> <?php $args = array('post_type' => 'team'); $team_query = new WP_QUERY($args); if ($team_query->have_posts()) { while ($team_query->have_posts()) { $team_query->the_post(); ?> <div class="col-xs-12 col-sm-6 col-md-3"> <div class="team-item"> <?php if (has_post_thumbnail()) { the_post_thumbnail(); } echo '<h4 class="team-title">' . get_the_title() . '</h4>'; the_content(); ?> </div>
?> "><?php echo $name; ?> </option> <?php } ?> </select> <input type="submit" name="calendar-form-submit" value="View Events"></p> </form> <?php $eventLoop = new WP_QUERY($query_args); while ($eventLoop->have_posts()) { $eventLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $start = get_post_meta($post->ID, 'oe-form-start', true); $end = get_post_meta($post->ID, 'oe-form-end', true); $location = get_post_meta($post->ID, 'oe-form-loc', true); $contact = get_post_meta($post->ID, 'oe-form-contact', true); $url = get_post_meta($post->ID, 'oe-form-url', true); $notes = get_post_meta($post->ID, 'oe-form-notes', true); if ($end == "none") { $dates = date('l F jS, g:ia', $start); } else { if (date('F j', $start) == date('F j', $end)) { $dates = date('l F jS, g:ia', $start) . " - " . date('g:ia', $end); } else { $dates = date('F jS, g:ia', $start) . " to " . date('F jS, g:ia', $end);
</div> </div> </section> <?php $args = array('post_type' => 'portfolio'); $query = new WP_QUERY($args); ?> <section class="row no-max pad"> <?php if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); ?> <div class="small-6 medium-4 large-3 columns grid-item"> <a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('large'); ?> </a> </div> <?php } }
?> <div class="content-area"> <div class="main"> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); } ?> <section class ="network_hospitals"> <?php $hospitalLoop = new WP_QUERY(array('post_type' => 'hospitals', 'posts_per_page' => -1, 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'hospital-form-order')); while ($hospitalLoop->have_posts()) { $hospitalLoop->the_post(); $title = get_the_title(); $content = get_the_content(); $image = get_the_post_thumbnail($post->ID, 'large'); ?> <article class="hospital"> <?php echo $image; ?> <h3><?php echo $title; ?> </h3> <p><?php echo $content;
<?php get_template_part('templates/page', 'header'); $projectsQuery = new WP_QUERY(array('post_type' => 'projects', 'order' => 'DESC')); ?> <section class="summary archives-summary"> <?php the_field('archives-summary'); ?> </section> <section class="card-wrapper"> <?php if ($projectsQuery->have_posts()) { ?> <?php while ($projectsQuery->have_posts()) { $projectsQuery->the_post(); ?> <article class="card card--has-columns card--full-bleed" id="<?php echo $post->post_name; ?> "> <div class="card-column card-column--projects card-column--two-thirds"> <p class="card-category">Projects</p> <h2 class="card-title"><?php the_title(); ?> </h2> <p class="card-dop"><?php the_field('project-date'); ?> </p>
?> </p> <p class="description-more"><?php echo get_option('more_info'); ?> </p> <span class="about-me">Read more</span> <div class="work center-content"> <ul> <?php $args = array('post_type' => 'work', 'posts_per_page' => 3); $loop = new WP_QUERY($args); if ($loop->have_posts()) { while ($loop->have_posts()) { $loop->the_post(); // ?> <li> <h1 class="company"><?php echo the_title(); ?> </h1> <div class="company-details"> <?php echo the_content(); ?> <img src="<?php echo wp_get_attachment_thumb_url(get_post_thumbnail_id($post->ID)); ?>