Sort / order ads by custom fields
I think it is a crucial mistake by appthemes that there is no ordering/sorting on top of the ad-lists! Users scould be able to order by custom fileds like cp_price both ASC and DESC.
I did though find a way to change the order according to cp_price by editing the file "taxonomy-ad_cat.php". I edited this line:
query_posts( array('post_type' => APP_POST_TYPE, APP_TAX_CAT => $term->slug, 'ignore_sticky_posts' => 1, 'paged' => $paged) );
query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'orderby' => 'meta_value', 'meta_key' => 'cp_price', 'order' => 'ASC')
The frontpage listings are not effected by this act, but can be ordered /sorted by using the plugin called "smart sort" from DyasonHat, and you no code changes is needed.