Title: Search for Posts By SQL
Last modified: August 18, 2016

---

# Search for Posts By SQL

 *  [ashes999](https://wordpress.org/support/users/ashes999/)
 * (@ashes999)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/)
 * I’m searching for a plugin that will give me an array of posts based on some 
   search criteria. It will allow me to search by either an SQL query (eg. select*
   from …) or by content (eg. all posts with the content …).
 * Does something like this exist? Basically, I have some posts that are indexes
   of other posts, and I want to list all posts that match that index automatically.

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

 *  Thread Starter [ashes999](https://wordpress.org/support/users/ashes999/)
 * (@ashes999)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/#post-603142)
 * No problemo, I made my own plugin 🙂 anyone who wants it, can email me. You punch
   in:
 * FindPosts(“some text here”)
 * …. and it lists all the posts, with their links 🙂
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/#post-603144)
 * email you where.. you dont have a url in your profile, and you dont provide an
   email address. How fruitless is that.
 *  Thread Starter [ashes999](https://wordpress.org/support/users/ashes999/)
 * (@ashes999)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/#post-603181)
 * It’s not available for public consumption; it makes a lot of assumptions about
   the permalink structure, for example. If anyone’s interested, email me at [ashes999@yahoo.com](https://wordpress.org/support/topic/search-for-posts-by-sql/ashes999@yahoo.com?output_format=md)
   and I’ll see about writing a generalizable one.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/#post-603182)
 * This one works pretty well:
    [http://www.zirona.com/software/wordpress-advanced-search](http://www.zirona.com/software/wordpress-advanced-search)

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

The topic ‘Search for Posts By SQL’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/search-for-posts-by-sql/#post-603182)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
