-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
59 lines (42 loc) · 1.23 KB
/
index.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
<?php
/*
Home/catch-all template
*/
get_header();
function alter_query($query) {
//gets the global query var object
global $wp_query;
$query->set( 'category__not_in', array( '5508' ) );
//we remove the actions hooked on the '__after_loop' (post navigation)
remove_all_actions( '__after_loop');
}
add_action('pre_get_posts','alter_query');
?>
<div id="primary" class="wrap group full-width">
<div class="two-third">
<h1>Ripon <span>News</span></h1>
<?php
while ( have_posts() ) : the_post();
?>
<div class="entry-content">
<div class="thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="post-meta">
Posted <?php the_date(); ?> in <?php print get_the_category_list( ", ", "", get_the_ID() ); ?> by <?php the_author_link() ?>.
</p>
</div>
<?php
endwhile;
?>
<div class="pagination">
<?php print paginate_links(); ?>
</div>
</div>
<div class="third sidebar pad-top">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-blog') ) : ?><!-- no sidebar --><?php endif; ?>
</div>
</div><!-- #primary -->
<?php get_footer(); ?>