Advertisement
alchymyth

loop

Mar 22nd, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php query_posts(array('category__and'=>array(2541,4433),'showposts'=>30,'orderby'=>menu_order,'order'=>asc));
  2. if( have_posts() ) : ?>
  3.     <tr>
  4.       <td class="fpb">Section Title</td>
  5.     </tr>
  6.     <?php while (have_posts()) : the_post(); ?>
  7.     <tr>
  8.       <td class="postbit" id="post-<?php the_ID(); ?>"><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
  9.         <?php the_title(); ?>
  10.         </a></strong>
  11.         <table border="0" cellspacing="0" cellpadding="0" width="522">
  12.           <tr>
  13.             <?php excerpt('0'); ?>
  14.             <td class="ip" valign="middle" align="left"><?php
  15. $content = $post->post_content;
  16. $content = strip_shortcodes($content);
  17. $content = str_replace(']]>', ']]&gt;', $content);
  18. $content = strip_tags($content);
  19. echo substr($content, 0, 230);
  20. ?>
  21.               ... </td>
  22.           </tr>
  23.         </table></td>
  24.     </tr>
  25.     <?php endwhile; endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement