Elegant themes sort project listings

from: https://www.elegantthemes.com/forum/viewtopic.php?f=169&t=127008&p=580906&hilit=filterable+sort#p580906

open template-page-projects.php and try to replace this code:

$portfolio_args = array(
 'post_type' => 'project',
 'showposts' => -1,
 'tax_query' => array(
 array(
 'taxonomy' => 'project_category',
 'field' => 'id',
 'terms' => $et_ptemplate_projectcats,
 'operator' => 'IN'
 )
 )
 );

with

$portfolio_args = array(
 'post_type' => 'project',
 'showposts' => -1,
'orderby'=>'id',
 'tax_query' => array(
 array(
 'taxonomy' => 'project_category',
 'field' => 'id',
 'terms' => $et_ptemplate_projectcats,
 'operator' => 'IN'
 )
 )
 );

Leave a comment