Tell us what you are trying to do? I have this VIEW which works fine..
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-item index=other][types field="id" output="raw"][/types],[wpv-item index=last][types field="id" output="raw"][/types]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]
This code was provided by Toolset some time back to help me create this list of brand-ids and it was perfect... Since then I have a relationship between eyewear-brands (whose id is output above) and brand-owner... the relationship is many to many with an intermediary post as 'eyewear-store'.. [wpcf-eyewear-store].. it's a 'checkboxes' (multiple choice ) where I could select multiple countries.. the value is 'in' or 'ae'
Now the user who is logged in has this value (in or ae) in its user fields too.. so [wpv-user field='wpcf-user-store'] would give me 'in' or 'ae'..
I want to have a condition where if the logged in user's store 'wpcf-user-store' is IN
THEN
show those brand-ids whose intermediary post custom field 'wpcf-eyewear-store' = IN
I tried it with this but I don't know where to put it..
[wpv-conditional if="( $(wpcf-eyewear-store) eq '[wpv-user field='wpcf-user-store']' )"]
[/wpv-conditional]
Please help... I have a deadline and would appreciate if you could help me with this soon.. I am in timezone GMT +8.00 so I might lose some time due to the time difference.. I hope you are able to provide me some guidance asap..
Here's a link to a post where Jamal helped me set the intermediary post that I am using above...
https://toolset.com/forums/topic/create-a-relationship-between-brand-and-brandowner-connected-to-a-country/
And here's a post that might help as Christian showed me a way on how to filter down a multiple checkboxes in a more efficient way but in that post there was an 'option-0' and 'option-1' part while in the intermediary post there's only 'value to store'..
https://toolset.com/forums/topic/if-condition-for-a-custom-field-with-multiple-checkboxes/
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site? versteckter Link