1 | <?php get_header(); ?> |
---|
2 | |
---|
3 | <div id="pagebody"> |
---|
4 | <div class="wrapper"> |
---|
5 | <div class="col-9"> |
---|
6 | <?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
---|
7 | |
---|
8 | <h2 class="fancy"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> |
---|
9 | |
---|
10 | <div class="meta"> |
---|
11 | Posted <?php the_date('','',''); ?> by <a href="<?php the_author_meta( 'url' ); ?>"><?php the_author() ?></a>. |
---|
12 | Filed under <?php if ( get_post_type() === 'podcast' ) : ?> |
---|
13 | <a href="/news/podcast/">Podcast</a>. |
---|
14 | <?php else : ?> |
---|
15 | <?php the_category(', '); ?>. |
---|
16 | <?php endif; ?> |
---|
17 | <?php edit_post_link(); ?> |
---|
18 | </div> |
---|
19 | <div class="storycontent"> |
---|
20 | <?php the_content('Read on for more »'); ?> |
---|
21 | </div> |
---|
22 | |
---|
23 | <?php if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> |
---|
24 | <div class="feedback"> |
---|
25 | <?php comments_popup_link('', '1 Ping', '% Pings'); ?> |
---|
26 | </div> |
---|
27 | <?php endif; ?> |
---|
28 | |
---|
29 | <?php comments_template(); // Get wp-comments.php template ?> |
---|
30 | |
---|
31 | <?php endwhile; else: ?> |
---|
32 | <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> |
---|
33 | <?php endif; ?> |
---|
34 | |
---|
35 | <?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?> |
---|
36 | |
---|
37 | </div> |
---|
38 | <div class="col-3"> |
---|
39 | |
---|
40 | <?php |
---|
41 | add_filter( 'widget_categories_args', function( $args ) { |
---|
42 | $args['number'] = 15; |
---|
43 | $args['orderby'] = 'count'; |
---|
44 | $args['order'] = 'DESC'; |
---|
45 | |
---|
46 | return $args; |
---|
47 | } ); |
---|
48 | |
---|
49 | dynamic_sidebar( 'sidebar-1' ); |
---|
50 | ?> |
---|
51 | |
---|
52 | </div> |
---|
53 | </div> |
---|
54 | </div> |
---|
55 | <?php get_footer(); ?> |
---|