Posted by Kafkaesqu� Fri 31st Mar 2006 00:56 - Syntax is PHP - 183 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
Description:
Simple WordPress query class that displays posts from category #2.

Discuss: http://wordpress.org/support/topic/67020

  1. $cat_posts = new WP_Query('cat=2'); ?>
  2. while($cat_posts->have_posts()) : $cat_posts->the_post(); ?>
  3. class="post">
  4. class="post-title">"" rel="bookmark" title="Permanent Link: ">(); ?> comments_popup_link('(0)','(1)','(%)','',''); ?>

  5.    
    class="post-content">
  6.     the_content(); ?>
  7.    
  • endwhile; ?>
  •  
  •  

  • PermaLink to this entry https://pastebin.co.uk/600
    Posted by Kafkaesqu� Fri 31st Mar 2006 00:56 - Syntax is PHP - 183 viewsRun this post in the PHP shell
    Download | New Post | Modify | Hide line numbers