Posted By

rccc on 10/12/10


Tagged

wordpress


Versions (?)

WP_Query


 / Published in: PHP
 

  1. // simpe query example
  2. $wp_query = new WP_Query();
  3. $wp_query->query('showposts=5');
  4. $posts = $wp_query->posts;

Report this snippet  

You need to login to post a comment.