Title: Custom fields
Last modified: September 29, 2019

---

# Custom fields

 *  Resolved [georgebekiaridis](https://wordpress.org/support/users/georgebekiaridis/)
 * (@georgebekiaridis)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-328/)
 * I’m trying to filter posts based on a custom field value I get from URL. How 
   is this possible? I tried $additional_where without success.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-328/#post-12000801)
 * Unfortunately, while we support custom post types and some taxonomies (tags, 
   categories) we don’t have a way to filter on a custom field value. Opening the
   URL up to query parameters could lead to a SQL injection attack.

Viewing 1 replies (of 1 total)

 The topic ‘Custom fields’ is closed to new replies.

 * ![](https://ps.w.org/better-random-redirect/assets/icon-256x256.png?rev=1039316)
 * [Better Random Redirect](https://wordpress.org/plugins/better-random-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-random-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-random-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/better-random-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-random-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-random-redirect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-328/#post-12000801)
 * Status: resolved