- This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Community Forums › Ally Theme Support › Portfolio Post Order
Tagged: ally, portfolio page, post order
Hi guys,
I thought I’d pass this along if anybody needs it.
I’m using Ally as a catalogue-only site and using the portfolio as the catalogue pages. Each category has its own page (great tutorial, thanks!) but I would like to display them alphabetically. In the page_portfolio.php I located the //Easter Egg under //Add Custom Loop and added ‘orderby’=>’title’, ‘order’=>’ASC’ to the end of $args line. So that line now looks like this:
$args = array('cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option('ally_portfolio_cat_num'), 'paged' => $paged, 'orderby'=>'title', 'order'=>'ASC');
$query_args = wp_parse_args($cf, $args);
Crossed my fingers, saved the file, and, lo-and-behold, it worked!
Hope this is helpful ๐
Yes this was definitely helpful! Thanks!
I’ll make sure Wes sees this and tests it. I think he should add this to the tutorial pages if it works out ok. When I get some time I’m going to try this myself.
Thanks again!
I create awesome sites for awesome people! Contact me if interested โ ericsanchez1585@gmail.com
Cool! Definitely let me know if you find something “buggy.” Otherwise I’ll wind up in here for support wondering why something is “off.”
Hey, by the way, here’s the site I did it on. Got it live this afternoon, client has quite a few broken internal links to fix. 89 products converted to posts. Yikes. She can handle that part.