Support » Fixing WordPress » Reorder my Blog Posts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    It would help if we could see your custom query.

    You’re right, it would 🙂

    $args = array(
      'category__in'     => '3',
      'caller_get_posts' => 1
    );
    
    if ( $paged > 1 ) {
      $args['paged'] = $paged;
    }
    
    $my_query = new WP_Query($args);

    I’m guessing I would just the Orderby info to my current $args array?

    How silly of me to miss this.

    esmi

    (@esmi)

    Forum Moderator

    In case anyone else is interested orderby will let you change the sorting criteria and order will allow you to use either ASC or DESC (ascending or descending).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reorder my Blog Posts?’ is closed to new replies.