Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19289

    How do I change the 4 portfolio items that show up on the home page? Is there a way to indicate something as a featured project to make it show up as one of the 4 on the home page?

    Also, how can I change the order in which the portfolio items in the 4 column javascript view show up? Is there a setting some place in the theme or in the code that I can change, or is it done by the date or something else?

    #103073

    Hi,

    Open includes > helper-template-logic.php and find this code

    $avia_config['new_query'] = array(	'orderby' 	=> 'ID',
    'order' => 'ASC',
    'paged' => get_query_var( 'paged' ),
    'posts_per_page' => $itemcount,
    'tax_query' => array( array( 'taxonomy' => 'portfolio_entries',
    'field' => 'id',
    'terms' => $terms,
    'operator' => 'IN')));

    Replace it with

    $avia_config['new_query'] = array(	'orderby' 	=> 'ID',
    'order' => 'DESC',
    'paged' => get_query_var( 'paged' ),
    'posts_per_page' => $itemcount,
    'tax_query' => array( array( 'taxonomy' => 'portfolio_entries',
    'field' => 'id',
    'terms' => $terms,
    'operator' => 'IN')));

    You can look at this link for order parameters. http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Regards,

    Ismael

    #103074

    Thanks Ismael, I just didn’t know where the code was to change it from ascending to descending.

    #103075

    Glad Ismael could help :)

    Regards,

    Devin

    #103076

    Does this work the same for replete?

    #103077

    Hi bevlogenverf,

    Yes, this should work also in Replete.

    Regards,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘change order of portfolio items’ is closed to new replies.