1

{if "|{featured_listing_category}|" *= "|{segment_4_category_id}|"} {!-- Is Included --} {if:else} {!-- Isn't Included --} {/if} Outputs as example: {if "|399|400|" contains "|372|"} Pipes required either side to ensure partial cats don't get incorrectly matched, e.g. 399 contains 39.


1

ugh, I came across what looks like the same thing a while ago: plugin value in a template conditional It's really odd. You could try ifify: http://devot-ee.com/add-ons/ifify ... though these days I think I'd attempt this more cleanly using Stash's get_list with match against parameters.


1

I ran into trouble with streeng as well on doing just a find in a conditional, but it worked well with find+replace (ee 2.8.1), maybe hit up the developer. For phpstringfun, in the example you put up you're doing a search for string position that's case sensitive. Try strripos and it should work with your example: {exp:phpstringfun function="strripos" ...


Only top voted, non community-wiki answers of a minimum length are eligible