Hi there,
May I ask how to organize the portfolio items to be listed by alphabetical order? I have tried publishing my portfolio items all at the same time, but it still does not appear sorted by name.
Thanks,
Sharon
Hi there,
May I ask how to organize the portfolio items to be listed by alphabetical order? I have tried publishing my portfolio items all at the same time, but it still does not appear sorted by name.
Thanks,
Sharon
In includes/loop-portfolio.php replace following line:
if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }
with
if(isset($avia_config['new_query'])) {
$avia_config['new_query']['orderby'] = "title";
$avia_config['new_query']['order'] = "ASC";
query_posts($avia_config['new_query']);
}further to this question, is custom ordering or preferential ordering possible? i.e.: make certain portfolio items always appear first.
Hi,
Replace Peter's code with this
if(isset($avia_config['new_query'])) {
$avia_config['new_query']['orderby'] = "menu_order";
$avia_config['new_query']['order'] = "ASC";
query_posts($avia_config['new_query']);
}
Now open includes > admin > register-portfolio.php and find this code
'supports' => array('title','thumbnail','excerpt','editor','comments')
Replace it with this
'supports' => array('title','thumbnail','excerpt','editor','comments', 'page-attributes')
A new metabox called Attributes will be added on your portfolio items editor. You can now order your portfolio numerically.
Regards,
Ismael
You must log in to post.