You are here

12 May 2011

How to get posts from multiple categories using get_posts function.

Source code viewer
  1. if ( ICL_LANGUAGE_CODE == 'en' ) {
  2. $arguments = array( 'numberposts' => 9999, 'offset'=> 0, 'category' => '10,11,12,13,14,15' );
  3. }
  4.  
  5. $myposts = get_posts( $arguments );
Programming Language: PHP