WordPress.org

Ready to get started?Download WordPress

Forums

Global $query_string with two order params (1 post)

  1. franco.pentangeli
    Member
    Posted 1 year ago #

    Hi,
    I want modify the global $query_string with this two order params:

    1) &orderby=meta_value_num&meta_key=stelle&order=DESC
    2) $orderby=title$order=ASC

    Now I use only one of them with this code:

    global $wp_query;
    $query_string.= "&orderby=meta_value_num&showposts=200&meta_key=stelle&order=DESC";
    query_posts( $query_string."orderby=title");

    How can I merge the two order parameters?
    Thanks

    F

Topic Closed

This topic has been closed to new replies.

About this Topic