This is what I needed, and it works well. Thanks!
Update 08/2015: I'm changing my rating from five to three because I'm getting notices like:
Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead
I've seen reports of this error from 1 year ago and it's not corrected yet: https://wordpress.org/support/topic/deprecation-notices-display-when-errors-and-notices-are-on?replies=3
For me is not a solution to turn notices on, and they appear in the front end during the developing phase.
You must log in to submit a review. You can also log in or register using the form near the top of this page.