Skip to content

Commit

Permalink
about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kelleher authored and Brian Kelleher committed Apr 8, 2016
1 parent fded57a commit cf78296
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion www/wp-content/themes/ation2016/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
18 changes: 15 additions & 3 deletions www/wp-content/themes/ation2016/templates/page-about.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{% extends "base.twig" %}

{% block content %}
<div class="container">
<pre>{{ dump(semesters) }}</pre>
</div>

{% for semester in semesters %}

<div class="container-fluid">
<div class="row">
<h1>{{ semester.name }}</h1>
</div>
</div>

{% for member in semester.members %}
<p>{{ member.name }}</p>
{% endfor %}

{% endfor %}

{% endblock %}

0 comments on commit cf78296

Please sign in to comment.