WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] how to change order by

[Resolved] how to change order by

Viewing 3 replies - 1 through 3 (of 3 total)
  • Harry
    Member

    @harmck

    $args=array(
           'cat' => $catid,
           'paged' => $paged,
           'orderby' => 'title'
      );

    Codex Reference Here

    antishape
    Member

    @antishape

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

    Harry
    Member

    @harmck

    $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 ‘[Resolved] how to change order by’ is closed to new replies.