-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudentgroups.php
More file actions
76 lines (76 loc) · 3.07 KB
/
studentgroups.php
File metadata and controls
76 lines (76 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?
/*
Template Name: Student Groups
*/
?>
<?php get_header(); ?>
<div id="main" class="container">
<div class="row">
<aside id="left_sidebar" class="threecol">
<section>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar('whoiswesward') ) : ?>
<?php endif; ?>
</section>
</aside>
<section id="main_content" class="ninecol last">
<header>
<h1>Student Groups</h1>
</header>
<nav id="alphabet">
<ul>
<a href="#A"><li>A</li></a>
<a href="#B"><li>B</li></a>
<a href="#C"><li>C</li></a>
<a href="#D"><li>D</li></a>
<a href="#E"><li>E</li></a>
<a href="#F"><li>F</li></a>
<a href="#G"><li>G</li></a>
<a href="#H"><li>H</li></a>
<a href="#I"><li>I</li></a>
<a href="#J"><li>J</li></a>
<a href="#K"><li>K</li></a>
<a href="#L"><li>L</li></a>
<a href="#M"><li>M</li></a>
<a href="#N"><li>N</li></a>
<a href="#O"><li>O</li></a>
<a href="#P"><li>P</li></a>
<a href="#Q"><li>Q</li></a>
<a href="#R"><li>R</li></a>
<a href="#S"><li>S</li></a>
<a href="#T"><li>T</li></a>
<a href="#U"><li>U</li></a>
<a href="#V"><li>V</li></a>
<a href="#W"><li>W</li></a>
<a href="#X"><li>X</li></a>
<a href="#Y"><li>Y</li></a>
<a href="#Z"><li>Z</li></a>
</ul>
</nav>
<article class="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<header>
<?php the_content(); ?>
<?php endwhile; else: endif;?>
</header>
<ul>
<?php
$args = array(
'post_type' => 'group',
'posts_per_page' => 26,
'orderby' => 'title',
'order' => 'ASC'
);
$loop = new WP_Query($args);
while ($loop -> have_posts()) : $loop -> the_post();
?>
<h3><div id="<?php the_title(); ?>"><?php the_title(); ?></div></h3>
<?php the_content(); ?>
<a href="#container" class="topLink">Back to top ↑</a>
<?php endwhile; ?>
</ul>
</article>
</section>
</div>
</div>
<?php get_footer(); ?>