diff --git a/content-location-2021.php b/content-location-2021.php
new file mode 100644
index 00000000..2ebd1e0a
--- /dev/null
+++ b/content-location-2021.php
@@ -0,0 +1,173 @@
+post_name;
+
+$subject = cf( 'subject' );
+$phone = cf( 'phone' );
+$email = cf( 'email' );
+$building = cf( 'building' );
+$spaces = cf( 'group_spaces' );
+$arexpert = get_field( 'expert' );
+
+$content_top_2021 = get_field( 'content_top_2021' );
+
+$content1left = get_field( 'tab_1_content_left' );
+$content1 = get_field( 'tab_1_content' );
+
+$content1wide = 0;
+if ( '' === $content1 ) {
+ $content1wide = 1;
+}
+
+$study24 = get_field( 'study_24' );
+
+$expertAskUrl = get_field( 'expert_ask_url' );
+if ( '' === $expertAskUrl ) {
+ $expertAskUrl = 'http://libraries.mit.edu/ask';
+}
+
+// Populate the array of available main images.
+$numMain = 6;
+$arMain = array();
+for ( $i = 1;$i <= $numMain;$i++ ) {
+ $img = get_field( 'main_image' . $i, $locationId );
+ if ( '' !== trim( $img ) ) {
+ $arMain[] = $img;
+ }
+}
+
+// Populate the array of available sub images.
+$numSub = 8;
+$arSub = array();
+$subs = 0;
+for ( $i = 1;$i <= $numSub;$i++ ) {
+ $img = get_field( 'sub_image' . $i, $locationId );
+ if ( '' !== trim( $img ) ) {
+ $subs++;
+ $arSub[] = $img;
+ }
+}
+
+$strLocation = '';
+if ( 0 >= $subs ) {
+ $strLocation = 'noThumbs';
+}
+
+$alertTitle = cf( 'alert_title' );
+$alertContent = cf( 'alert_content' );
+?>
+
+
+
+
+
+
+
+
+ post_title;
+ $bio = $expert->post_excerpt;
+ // $url = $expert->guid;
+ $url = get_post_meta( $expert->ID, 'expert_url', 1 );
+
+ if ( has_post_thumbnail( $expert->ID ) ) {
+ $thumb = get_the_post_thumbnail( $expert->ID, array( 108, 108 ) );
+ } else {
+ $thumb = '';
+ }
+
+ ?>
+
+
+
+
+ Featured expert
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content-location.php b/content-location.php
index e8b9f850..39c19e76 100644
--- a/content-location.php
+++ b/content-location.php
@@ -1,6 +1,6 @@
ID == $post->ID;
+
+get_header(); ?>
+
+
+
+ $objs->ID,
+ 'post_type' => 'any',
+);
+
+$location_posts = new WP_Query( $args );
+?>
+
+
+
+ have_posts() ) :
+ $location_posts->the_post();
+ ?>
+
+
+
+
+
+
+
+
diff --git a/page-location.php b/page-location.php
index 478e6dbe..2144ef96 100644
--- a/page-location.php
+++ b/page-location.php
@@ -2,10 +2,9 @@
/**
* Template Name: Location Template
*
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site will use a
- * different template.
+ * This is the template that displays location records, which have a number
+ * of custom fields defined by the ACF plugin. This template was designed
+ * prior to 2021, and is a legacy layout.
*
* @package MIT_Libraries_Parent
* @since 1.2.1
diff --git a/style.css b/style.css
index 138a4236..3ed056c0 100644
--- a/style.css
+++ b/style.css
@@ -2,7 +2,7 @@
Theme Name: MIT Libraries
Author: Lightning Trumpet
Author URI: http://wordpress.org/
-Version: 1.11.1-@@branch-@@commit
+Version: 1.12.0-@@branch-@@commit
MIT Libraries theme built for the MIT Libraries website.