-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-page.php
31 lines (27 loc) · 1.12 KB
/
main-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
<?php /* Template Name: Main Page */ ?>
<?php get_header(); ?>
<div id="content">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : endif ?>
<div class="hfeed content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<!--Add Related Entries if Yet Another Related Posts Plugin is installed-->
<?php global $wp_query; ?>
<?php $related_entries = get_post_meta( $wp_query->post->ID, 'Display Related Entries', true ); ?>
<?php if (function_exists('related_entries')) {
if ($related_entries == '1') {
echo related_entries();
}
}?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this page.', '<p>', '</p>'); ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>