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
<?php
/*
Template Name: news
*/
?>
<?php echo $GLOBALS['wp_query']->request; ?>

<?php get_header(); ?>

<?php if ( have_posts() ) : ?>

  <div class="content_left">
      <!-- the post -->
    <?php while ( have_posts() ) : the_post(); ?>
       <?php $this_post_url = get_permalink(); ?>
      
            <div class="blog">
                
                <h2><a href="<?php echo $this_post_url; ?>"><?php the_title(); ?></a></h2>
                
         <p>Post by <?php the_author(); ?> on <?php echo get_the_date(); ?></p> 
                
      <?php the_excerpt(); ?>
                 
                <p><?php the_tags(); ?></p>
                
                
                <?php 
                //Share the post
                
                ?>
            <!-- Add comments -->
            </div>      
       
    <?php endwhile; ?>
      <!-- /the post -->
      
    <?php previous_posts_link('<< Newer Entries'); ?>
        <?php next_posts_link('Older Entries >>'); ?>
  
  <?php else : ?>
  
    <article id="post-0" class="post no-results not-found">
      <header class="entry-header">
        <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
      </header><!-- .entry-header --> 
  <?php endif; ?>

  </div>
  <div class="content_right">   
    
  </div>
  <div class="clear"></div>
         
<?php get_footer(); ?>