There is a post type "esemeny" with a post reference field "moziterem" (post type to connect "helyszinek")
I create a view (all esemeny) : hidden link
Then I create another view with query filter: hidden link
Custom field filter: The Moziterrem is a string that is equal to the following constant: 630
The problem is: Filtered view show only old posts (with reference fields ID630)
You mean that the filter works, but only finds old posts, not recent posts?
Rather than add the filter as a custom field filter, can you delete that and replace it with a Relationship Query Filter?
The post reference field is based upon a post relationship, and if you insert a relationship filter based upon that field you can specify a single post that the results should be related to (the post with ID 630 in your example).
Replace with a Relationship Filter is resolve my TEST view. 🙂 hidden link
But the public view where I want to use this Relationship filter there already has one 🙁
So next question: how can i use two Relationship filter at once?
Currently, Toolset does not offer to filter a view with two relationships. However, this can still be implemented using some custom code, which is beyond the scope of this support forum.
When we use a relationship as a filter, Toolset makes sure to generate the filter and to make sure that the query will use the filter value in search.
You will need two custom codes, one for generating the filter, and the other one to hook into the view's query and change it to take into consideration the value of the filter.