WordPress.org

Support

Support » How-To and Troubleshooting » How to query posts based on a portion of a meta_value

How to query posts based on a portion of a meta_value

  • I’d like to run a query that uses meta_values. The single meta_value contains a list of words. Can I structure the query so that I can say something like, return all of the posts that have a meta_value that contains the string of “list-item-3”?

    The meta_value may actually contain: “list-item-1 | list-item-2 | list-item-3 | list-item-4”

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to query posts based on a portion of a meta_value’ is closed to new replies.