WordPress.org

Support

Support » WP-Advanced » Where are defined the query_posts parameter?

Where are defined the query_posts parameter?

  • I want to know, in wich WordPress core file, are defined the query_posts parameter list?

    I want to sort the loop order by a specific field in my posts table (points).

    For the moment, i can sort the loop with any of the default parameter of the query_posts function.

    But if i try to sort the loop using the “points” field in my posts table:

    <?php if ( have_posts() ) : query_posts($query_string .’&orderby=points&order=ASC’); while ( have_posts() ) : the_post(); ?>

    it doesn’t work.

    anybody can help me?

    maybe add a new parameter “points” to the query_posts function?

    thx

  • The topic ‘Where are defined the query_posts parameter?’ is closed to new replies.