I am trying to: Show 4 random Custom Posts from the same PLACE as the selected Custom Post
A View shows a Post.
Below that view, I have placed a 2e View showing 4 random posts.
That works well.
Now I would like to be shown in the 2nd View (under) Posts with the same Custom Field "CITY" as the above post.
I have tried a lot with the Filter, but I do not get it working.
Dear user,
are the Place and City fields separate custom fields of the same post type that the random posts are referring to?
You could use a condition on your 2nd View that outputs only the posts that have the same City field as the posts of the content you are filtering.
To get the parameter of the City for your condition, you would need to pass this parameter to your second View.
If you use a nested View, with the parent View for the Post and the Child View for the random posts, you could pass that argument.
This documentation could be useful for your case:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
https://toolset.com/documentation/user-guides/passing-arguments-to-views/
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/nesting-and-combining-conditions/
If this does not help you out, please specify with an example of your code to be able to check if what you are trying to do is possible in the way you are doing it.
Kind regards,
Cristina