Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? get_header(); ?>
- <table width="100%" cellpadding="5" cellspacing="5" border="0" align="center">
- <tr>
- <td width="66%" valign="top">
- <H1>The Latest News</H1>
- <?php $my_query = new WP_Query('category_name=news,blog');
- while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <H2 style="margin:0; padding:0;"><? the_title(); ?></H2>
- <p style="border-bottom: 1px dashed #3b5d98;"><? echo get('date'); ?>: <? the_author_posts_link(); ?></p>
- <? the_content();?>
- <br /><hr />
- <?php endwhile; wp_reset_postdata(); // End the loop ?>
- <table width=100% cellpadding=5 cellspacing=5 border=0 align=center>
- <tr>
- <td width=50% align=left><?php posts_nav_link('</td><td width=50% align=right>','« Previous Page','Next Page »'); ?></td>
- </tr>
- </table>
- </td>
- <td width="34%" valign="top">
- <? get_sidebar('social'); ?>
- <? get_sidebar('subgenres'); ?>
- <? get_sidebar('newsletter'); ?>
- </td>
- </tr>
- </table>
- <? get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement