-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSA.php
More file actions
32 lines (18 loc) · 898 Bytes
/
PSA.php
File metadata and controls
32 lines (18 loc) · 898 Bytes
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
<?php /* Template Name: PSA Template */ ?>
<?php get_header(); ?>
<p><a href="http://www.byuidahoradio.org/submit-psa/">Click here to submit a Public Service Announcement</a></p>
<p><a href="http://www.byuidahoradio.org/submit-news-story/">Click here to submit a new News Story</a></p>
<?php $my_query = new WP_Query('category_name=psat&posts_per_page=10'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
</div>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php // comments_template(); ?>
<?php endwhile; ?>
<?php get_footer(); ?>