Where are defined the query_posts parameter? (1 post)

  1. creativepurple
    Posted 9 years ago #

    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?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.