This repository was archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsocial-page-six.php
65 lines (59 loc) · 1.91 KB
/
social-page-six.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
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
/* Template Name: Page Six Template
* @package VLRFC
* @subpackage
*/
get_header(); ?>
<div id="content_container">
<div id="content_main">
<div id="content_main_inner">
<?php
if (have_posts()) :
$postCount = 0;
while (have_posts()) :
the_post();
?>
<?php
the_content('<p class="serif">Read the rest of this page »</p>');
wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
$postCount++;
endwhile;
endif;
edit_post_link('Edit this entry.', '<p>', '</p>');
$catName = '';
if( is_page( 'page-6' ) ) { // Page Six
$catName = 'page-six';
}
$showPostsCount = 10;
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$queryParams = 'category_name=' . $catName . '&showposts=' . $showPostsCount . '&paged=' . $paged ;
query_posts( $queryParams );
if (have_posts()) :
$newerPostText = 'Newer Sightings »';
$olderPostText = '« Older Sightings';
include( 'paged-navigation-inc.php' );
?>
<br/><br/>
<?php
$postCount = 0;
while (have_posts()) :
the_post();
$h1_css = (($postCount == 0) ? "no_topmargin" : "" );
$alt_headline = get_post_meta($post->ID, "alt_headline_title", true);
?>
<?php
the_content('<p class="serif">Read the rest of this page »</p>');
wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
$postCount++;
endwhile;
$newerPostText = 'Newer Sightings »';
$olderPostText = '« Older Sightings';
include( 'paged-navigation-inc.php' );
endif;
?>
</div> <!-- end of div#content_main_inner -->
</div> <!-- end of div#content_main -->
<?php
get_sidebar();
get_footer();