Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19600

    Hi, whenever I post a new item in the portfolio section it appears at the end of the list. Since I want people to be able to see our new stock easily this is obviously not ideal. I have tried changing the date to be very old in case it is sorting in reverse date order but it doesn’t seem to make a difference. Please help me to fix this asap, I love your work (our site used to use display), but this is very frustrating and my boss is becoming upset that I can’t find a resolution.

    website: http://secondhandforklifts.com.au

    #104280

    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')));

    You can replace the orderby parameter to date then the order to either DESC or ASC, something like this

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

    Or just change the order parameter to DESC.

    Regards,

    Ismael

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

The topic ‘portfolio sorting in reverse order’ is closed to new replies.