patching the rooms ajax and php functions that set the categories for the parallax...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 May 2018 19:55:35 +0000 (15:55 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 May 2018 19:55:35 +0000 (15:55 -0400)
layouts/blog-section.php
layouts/portfolio-section.php
layouts/service-section.php
layouts/team-section.php
layouts/testimonial-section.php

index 3b7cc68..b1b31f5 100644 (file)
@@ -9,10 +9,17 @@
        <div class="blog-listing clearfix">
        <?php 
                $args = array(
-                       'cat' => $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;
index 8568656..0432b6d 100644 (file)
@@ -9,10 +9,17 @@
        <div class="portfolio-listing clearfix">
        <?php 
                $args = array(
-            'post_type' => '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()):
index 5f93200..99bfd9d 100644 (file)
@@ -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',
index b3dedb9..ded103d 100644 (file)
 
                <?php 
                $args = array(
-            // 'post_type' => '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()): ?>
                <div class="team-content wow fadeIn" data-wow-delay="1.5s">
index 4819536..76f06d3 100644 (file)
@@ -9,10 +9,17 @@
        <div class="testimonial-listing clearfix wow fadeInUp">
        <?php 
                $args = array(
-            'post_type' => '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()): ?>
                <div class="testimonial-slider">