Title: Order by =&gt; &#039;post_type&#039;
Last modified: August 20, 2016

---

# Order by => 'post_type'

 *  Resolved [bssilveira](https://wordpress.org/support/users/bssilveira/)
 * (@bssilveira)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/order-by-post_type/)
 * hi,
    i’m make a search engine and i need sort the results by post_type, how to
   make?
 * sorry my english, i’m brazilian…
 * i’m waiting a return..
 * help me please!
 * thanks…

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/order-by-post_type/#post-3345687)
 * One solution would be to use a filter to modify the query. Here is an article
   that might help: [http://wordpress.mcdspot.com/2010/05/30/filters-to-modify-a-query/](http://wordpress.mcdspot.com/2010/05/30/filters-to-modify-a-query/)
 *  Thread Starter [bssilveira](https://wordpress.org/support/users/bssilveira/)
 * (@bssilveira)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/order-by-post_type/#post-3345710)
 * thank’s…
    Their help was very valid…
 * thank more one time..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Order by => 'post_type'’ is closed to new replies.

## Tags

 * [order_by](https://wordpress.org/support/topic-tag/order_by/)
 * [post_type](https://wordpress.org/support/topic-tag/post_type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bssilveira](https://wordpress.org/support/users/bssilveira/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/order-by-post_type/#post-3345710)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
