Portfolio Post Order

Homepage Community Forums Ally Theme Support Portfolio Post Order

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5868
    BossLady
    Customer

      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 🙂

      #5873
      Eric
      Customer

        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

        #5874
        BossLady
        Customer

          Cool! Definitely let me know if you find something “buggy.” Otherwise I’ll wind up in here for support wondering why something is “off.”

          #5888
          BossLady
          Customer

            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.

            http://butterflyprojectjewelry.org

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.