1. <?php
  2. /*
  3. Template Name: Cat_post_in_table
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <div id="page" class="clearfix">
  10.  
  11. <div id="contentleft">
  12.  
  13. <div id="content" class="maincontent">
  14.  
  15. <div class="singlepage">
  16.  
  17. <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  18. <div>
  19. <?php query_posts('category_ID=148 &showposts=10'); ?>
  20.  
  21. <?php if( have_posts() ) : ?>
  22. <table width="100%" border="2px;">
  23. <tr>
  24. <td>Name of the Result/Topic</td>
  25. <td>Post Publishing Date</td>
  26. <td>Link to Full Article</td>
  27. </tr>
  28. <?php while( have_posts() ) : the_post(); ?>
  29. <tr>
  30. <td><?php the_title(); ?></td>
  31. <td><?php the_date(); ?></td>
  32. <td><a href="<?php the_permalink(); ?>">View Full Article</a></td>
  33. </tr>
  34. <?php endwhile; ?>
  35. </table>
  36. <?php endif; ?>
  37. </div>
  38.  
  39.  
  40.  
  41. <div id="home-bottom-latestpost">
  42. <span class="btn-green">Latest Posts</span>
  43. <ol>
  44. <?php query_posts('showposts=10'); ?>
  45. <?php while (have_posts()) : the_post(); ?>
  46. <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>
  47. <?php endwhile; ?>
  48. </ol><a name="latestposts"></a>
  49. </div>
  50.  
  51.  
  52.  
  53.  
  54. <div >
  55. <?php get_footer(); ?>
  56. </div>
  57.  
  58.  
  59. </div>
  60.  
  61. </div>
  62.  
  63.  
  64. </div>
  65.  
  66.  
  67.  
  68. </div>
  69.  
  70. <?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
  71.  
  72. </div>
  73.  
  74. <?php get_sidebar(); ?>
  75.  
  76. <?php get_footer(); ?>