Reply To: Portfolio Filter with category parent/children only

#2810
livemesh
Keymaster

Ok same issue with ordering based on the order attribute. I think I made this change as part of I removed all the code which does this from my codebase so that the next update does not use the order attribute anymore. If the earlier problem is fixed, the below change will fix the shortcode issue –

Pls make the change in the file framework/presentation/layout-manager.php line number 384 to 394 –

            if (empty($post_type))
                $loop = new WP_Query(array('ignore_sticky_posts' => 1, 'posts_per_page' => $post_count));
            elseif (empty($taxonamy) || empty($terms))
                $loop = new WP_Query(array('post_type' => $post_type, 'posts_per_page' => $post_count));
            else
                $loop = new WP_Query(array('post_type' => $post_type, 'posts_per_page' => $post_count,
                    'tax_query' => array(array(
                        'taxonomy' => $taxonamy,
                        'field' => 'slug',
                        'terms' => explode(',', $terms)
                    ))));