WordPress.org

Ready to get started?Download WordPress

Forums

Sorting by meta value (1 post)

  1. iperez_genius
    Member
    Posted 1 year ago #

    $params=array(
    'posts_per_page'=> 50,
    'post_type' => array('type1','type2','type3'),
    'post_status' => 'publish',
    'meta_key'=>'homepageorder',
    'paged' => $paged,
    'orderby' => 'meta_value',
    'order' => 'DESC'
    );

    $wp_query = new WP_Query($params);

    this is my query.
    No matter what i do, the i can not order the results.

    Can anyone help me here.

Topic Closed

This topic has been closed to new replies.

About this Topic