Portfolio Filter with category parent/children only

Support Forums for LiveMesh Themes & Plugins Forums Extinct Theme Support Portfolio Filter with category parent/children only

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #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)
                        ))));
    
    #2811
    livemesh
    Keymaster
    This reply has been marked as private.
    #3416
    dvhughes
    Member

    Ok…I was tied up with another job for a bit, now I am back on this.

    Thanks for the obove attachment. However I am unsure what to do with it.
    And does it over-ride the code posted in reply #2810?

    Thanks.

    #3423
    dvhughes
    Member

    Ok sorry. A little bit of a brain-freeze there.
    I swapped out the layout-manager.php with the one you provided above.

    I have tested it several times with re-dating several entries and I am very happy to report that it works.

    Fantastic!
    Thank you for your attention to this.

Viewing 4 posts - 16 through 19 (of 19 total)
  • The topic ‘Portfolio Filter with category parent/children only’ is closed to new replies.