From cf7829657de7d0a694cf68c8e0454185bf764112 Mon Sep 17 00:00:00 2001 From: Brian Kelleher Date: Thu, 7 Apr 2016 20:49:41 -0400 Subject: [PATCH] about page --- www/wp-content/themes/ation2016/page.php | 2 +- .../themes/ation2016/templates/page-about.twig | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/www/wp-content/themes/ation2016/page.php b/www/wp-content/themes/ation2016/page.php index 717b3db..476c3b0 100755 --- a/www/wp-content/themes/ation2016/page.php +++ b/www/wp-content/themes/ation2016/page.php @@ -56,7 +56,7 @@ $semesters = Timber::get_terms('semester'); foreach ( $semesters as $key => $semester ) { $member_args = array( - 'post_type' => 'members', + 'post_type' => 'member', 'posts_per_page' => -1, 'tax_query' => array( array( diff --git a/www/wp-content/themes/ation2016/templates/page-about.twig b/www/wp-content/themes/ation2016/templates/page-about.twig index 73e4305..f0936d6 100644 --- a/www/wp-content/themes/ation2016/templates/page-about.twig +++ b/www/wp-content/themes/ation2016/templates/page-about.twig @@ -1,7 +1,19 @@ {% extends "base.twig" %} {% block content %} -
-
{{ dump(semesters) }}
-
+ + {% for semester in semesters %} + +
+
+

{{ semester.name }}

+
+
+ + {% for member in semester.members %} +

{{ member.name }}

+ {% endfor %} + + {% endfor %} + {% endblock %} \ No newline at end of file