Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Cat_post_in_table
- */
- ?>
- <?php get_header(); ?>
- <div id="page" class="clearfix">
- <div id="contentleft">
- <div id="content" class="maincontent">
- <div class="singlepage">
- <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
- <div>
- <?php query_posts('category_ID=148 &showposts=10'); ?>
- <?php if( have_posts() ) : ?>
- <table width="100%" border="2px;">
- <tr>
- <td>Name of the Result/Topic</td>
- <td>Post Publishing Date</td>
- <td>Link to Full Article</td>
- </tr>
- <?php while( have_posts() ) : the_post(); ?>
- <tr>
- <td><?php the_title(); ?></td>
- <td><?php the_date(); ?></td>
- <td><a href="<?php the_permalink(); ?>">View Full Article</a></td>
- </tr>
- <?php endwhile; ?>
- </table>
- <?php endif; ?>
- </div>
- <div id="home-bottom-latestpost">
- <span class="btn-green">Latest Posts</span>
- <ol>
- <?php query_posts('showposts=10'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- </ol><a name="latestposts"></a>
- </div>
- <div >
- <?php get_footer(); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement