-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvolunteer_page.php
executable file
·54 lines (41 loc) · 1.21 KB
/
volunteer_page.php
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
<?php
/*
Template Name: volunteer_page
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section>
<article id="post-<?php the_ID(); ?>">
<header>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</header>
<section>
<?php the_content('Read more on "'.the_title('', '', false).'" »'); ?>
<?php
$pages = get_pages('child_of='.get_the_ID());
foreach($pages as $page) {
?>
<hr />
<b><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?>:</a></b>
<blockquote>
<?php echo $page->post_content ?>
</blockquote>
<?php
}
?>
</section>
<footer>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</footer>
</article>
</section>
<?php endwhile; else: ?>
<section>
<article>
<p>Sorry, no posts matched your criteria.</p>
</article>
</section>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>