<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;
<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()):
$args = array(
'post_type' => 'glm-parallax',
'posts_per_page' => -1,
+ 'orderby' => 'menu_order',
'tax_query' => array(
array(
'taxonomy' => 'parallax_posts_category',
<?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">
<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">