Title: Modify Default SQL Query for Categories &#8211; PLEASE HELP!
Last modified: August 19, 2016

---

# Modify Default SQL Query for Categories – PLEASE HELP!

 *  [rbernabe](https://wordpress.org/support/users/rbernabe/)
 * (@rbernabe)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/modify-default-sql-query-for-categories-please-help/)
 * Hi All
 * I haven’t been getting much of a response elsewhere, so Im hoping to get an answer
   here.
 * I have a new SQL query that I’d like to use to view categories instead of the
   default. It will sort based on a custom field. I have the query, I just need 
   to know where to put it so that anytime anyone clicks on a category, this SQL
   query is used and not the default (which I believe sorts based on the post title).
 * Can anyone help?
 * Thanks!
    Rob

The topic ‘Modify Default SQL Query for Categories – PLEASE HELP!’ is closed to 
new replies.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)

 * 0 replies
 * 1 participant
 * Last reply from: [rbernabe](https://wordpress.org/support/users/rbernabe/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/modify-default-sql-query-for-categories-please-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
