WordPress.org

Ready to get started?Download WordPress

Forums

Query Strings (2 posts)

  1. travinum1
    Member
    Posted 7 months ago #

    How would I create a query string to sort posts using custom fields? Makes sense?

  2. Fatih SARI
    Member
    Posted 7 months ago #

    You can use this codes:

    query_posts( array(
      'post_type' => 'post',
      'order' => 'ASC',
      'orderby' => 'meta_value',
      'meta_key' => 'turkish_people_like_to_help'
    ) )

Reply

You must log in to post.

About this Topic