From: Anthony Talarico Date: Thu, 17 May 2018 19:55:35 +0000 (-0400) Subject: patching the rooms ajax and php functions that set the categories for the parallax... X-Git-Tag: v1.0.0^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=82eacd5517b56a0ca20380b43cff7dcaad011e29;p=WP-Themes%2Flaurium.git patching the rooms ajax and php functions that set the categories for the parallax sections --- diff --git a/layouts/blog-section.php b/layouts/blog-section.php index 3b7cc68..b1b31f5 100644 --- a/layouts/blog-section.php +++ b/layouts/blog-section.php @@ -9,10 +9,17 @@
$category, - 'posts_per_page' => 3 - ); - + 'post_type' => 'glm-parallax', + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'tax_query' => array( + array( + 'taxonomy' => 'parallax_posts_category', + 'field' => 'term_id', + 'terms' => $category + ) + ) + ); $query = new WP_Query($args); if($query->have_posts()): $i = 0; diff --git a/layouts/portfolio-section.php b/layouts/portfolio-section.php index 8568656..0432b6d 100644 --- a/layouts/portfolio-section.php +++ b/layouts/portfolio-section.php @@ -9,10 +9,17 @@
'glm-parallax', - 'cat' => $category, - 'posts_per_page' => -1 - ); + 'post_type' => 'glm-parallax', + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'tax_query' => array( + array( + 'taxonomy' => 'parallax_posts_category', + 'field' => 'term_id', + 'terms' => $category + ) + ) + ); $query = new WP_Query($args); if($query->have_posts()): diff --git a/layouts/service-section.php b/layouts/service-section.php index 5f93200..99bfd9d 100644 --- a/layouts/service-section.php +++ b/layouts/service-section.php @@ -11,6 +11,7 @@ $args = array( 'post_type' => 'glm-parallax', 'posts_per_page' => -1, + 'orderby' => 'menu_order', 'tax_query' => array( array( 'taxonomy' => 'parallax_posts_category', diff --git a/layouts/team-section.php b/layouts/team-section.php index b3dedb9..ded103d 100644 --- a/layouts/team-section.php +++ b/layouts/team-section.php @@ -45,10 +45,17 @@ 'glm-parallax', - 'cat' => $category, - 'posts_per_page' => -1 - ); + 'post_type' => 'glm-parallax', + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'tax_query' => array( + array( + 'taxonomy' => 'parallax_posts_category', + 'field' => 'term_id', + 'terms' => $category + ) + ) + ); $query = new WP_Query($args); if($query->have_posts()): ?>
diff --git a/layouts/testimonial-section.php b/layouts/testimonial-section.php index 4819536..76f06d3 100644 --- a/layouts/testimonial-section.php +++ b/layouts/testimonial-section.php @@ -9,10 +9,17 @@
'glm-parallax', - 'cat' => $category, - 'posts_per_page' => -1 - ); + 'post_type' => 'glm-parallax', + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'tax_query' => array( + array( + 'taxonomy' => 'parallax_posts_category', + 'field' => 'term_id', + 'terms' => $category + ) + ) + ); $query = new WP_Query($args); if($query->have_posts()): ?>