Viewing 3 replies - 1 through 3 (of 3 total)
  • $args=array(
           'cat' => $catid,
           'paged' => $paged,
           'orderby' => 'title'
      );

    Codex Reference Here

    Thread Starter antishape

    (@antishape)

    Thank you! Guess it was confusing to see $catid instead of ‘catid’ so I thought it would be wrong to place it here.

    $catid is just a variable I use to set the category, you could manually define it, like ‘cat’ => 3,4,5 etc.

    Mainly, I think I was pointing out the ‘orderby’ attribute you can define.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to change order by’ is closed to new replies.