From 89316bcfbacd03e440b99947c3ed0beadb9e3c85 Mon Sep 17 00:00:00 2001 From: Monika Eftimova Date: Sat, 4 Oct 2014 17:26:37 +0300 Subject: [PATCH] Add sponsors on front page --- front-page.php | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/front-page.php b/front-page.php index 430c58f..5483a3b 100644 --- a/front-page.php +++ b/front-page.php @@ -1,10 +1,40 @@ -
- - - - - +
+ +
+

+

+
+
+

+ 'sponsors', 'orderby' => 'rand' ); + $the_query = new WP_Query( $args ); + + if ( $the_query->have_posts() ) : + while ( $the_query->have_posts() ) : $the_query->the_post(); + if ( has_post_thumbnail() ) { + ?> + + + + +