Questions tagged [contains]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Conditional to detect mobile devices with getUserAgent?

I want to create a User Agent check. (Yes I know. It is evil.) So I created an Array. The whole idea is to see if the user agent contains a specific word. This way I hope to circumvent regex trickery....
1
vote
1answer
290 views

Return entries where custom field partially contains

My entries have a field containing a third-party product id and a price, separated by a hyphen, like so: p666a-12.99 In the template, a plugin is returning me some product ids, and I want to return ...