I have created a channel named as 'XYZ' and having following channel fields there :

1) user_type : text 

2) profile : grid

    a) first_name : text 

    b) last_name :  text

    c) user_name : text 

    d) age : text

Now i want to show user listing for a entry and i am having a text box in form and i want to search users from first_name or last name. i have used following code :

{exp:channel:entries channel="xyz" entry_id=1}
    {profile search:first_name="amit" search:last_name="amit"}

But the code

{profile search:first_name="amit" search:last_name="amit"}

it is using 'and' condition but i want to use 'or' condition.

  • Would using a conditional in the results work for you instead of a search? i.e.: {if profile:first_name == "amit" OR profile:last_name == "amit"}... Jul 31, 2014 at 14:23

1 Answer 1


You need to create custom query and it is ee bug and did not work such for OR conditions. Use custom query or query module and need to use join with channel and channel field and channel field data etc,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.