Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

If statement contains multiple key words to test

$
0
0

Replies: 0

Greetings,

Is it possible to include multiple keywords in “contains” parameter of an if statement?

Here’s the example that is provided in documentation: [if field=title,content contains='some keywords']

Can I have something like? [if field=title,content contains='.mp3, .mp4']

That way I can test scenarios like if a url entered contains a .mp4 or .mp3. I’ve tried tweaking the short-code in many different ways, but not getting any luck.

Can you please advise?

Thanks,
Kendell


Viewing all articles
Browse latest Browse all 59525

Trending Articles