Snippet: A quick and easy second or side loop for Wordpress

Posted in Wordpress
December 4th, 2009

Resources, related or just simply helpful:

http://codex.wordpress.org/Template_Tags/query_posts

http://codex.wordpress.org/Template_Tags/get_posts

	1, // Number of related posts that will be shown.
				'category_name'=>'monthlytips',
				'orderby'=>'date',
				'order'=>'DESC'
			);

			$newsArticles = new wp_query($args);
			if( $newsArticles->have_posts() ) {
				while ($newsArticles->have_posts()) {
					$newsArticles->the_post(); ?>