From 41cfc5621e4c65ce53e51b6b45bbdebff16ebc47 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 31 Oct 2017 11:57:26 -0400 Subject: [PATCH] Use php to setup every third in row Put a new row for every third block. --- sections/landing-page.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sections/landing-page.php b/sections/landing-page.php index 4d7fad4..9fdd4ed 100644 --- a/sections/landing-page.php +++ b/sections/landing-page.php @@ -27,11 +27,6 @@
-
@@ -42,16 +37,16 @@ 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', - 'orderby' => 'menu_order' + 'orderby' => 'menu_order', + 'post_status' => 'publish', ); $post_parent = $post->ID; $parent = new WP_Query( $args ); + $blockCount = 1; ?> have_posts() ) : ?> have_posts() ) : $parent->the_post(); ?> - -

+ + +
+
-- 2.17.1