I had a look at hidden link
I see in this page you inserted the "list-job-post-details-posts" View (hidden link)
There, the RFG "Job Post Details" is queried.
However, that same view has a query filter to get only the posts that have an IDs set by the View shortcode attribute "ids" eg. [wpv-view name="view-name" ids="1"]
When inserting the View in the page I see you pass another View as ID attribute: parent-view-expired-job-posts-within-7-days (hidden link)
This View, queries Jobs and will give us only the Jobs that have as Last Date of Application/ Date of Interview a number (timestamp) between PAST_DAY(7), PAST_DAY(1) (so between the last 6 days of past-yesterday).
The Loop in this View here is however not returning (as I expected) a set of IDs that the other view could use for its View ShortCode attribute, it calls once more a View "child-view-expired-job-posts-within-7-days" (hidden link)
Now this view again queries the RFG "Job Post Details", and only those that related to the current post in the loop.
Finally, this View gives us Post ID of those RFGs.
So ultimately, when we insert list-job-post-details-posts, which will return RFG posts related to the posts passed in its shortcode attribute), it will try to get posts related to the ID as given by child-view-expired-job-posts-within-7-days.
That View's Output however, a commaseparated list, will repeat for its parent View parent-view-expired-job-posts-within-7-days for each post found there, and that View, will then produce the repeating comma separated lists of ID's to the final View.
When we visit hidden link, we see the output of "List Job Post Details posts" View, I added a small string to show that in the front end, and I see only posts that are from before past-yesterday and none past 7 days before today.
The setup is particular but seems to output the right data?
Now, you want to restrict this list even further by querying the RFG Fields, do I understand correctly?
Related to hidden link, there I see that you use a Content Template where the View "parent-view-related-post" (hidden link), which queries "Jobs" that have a Last Date of Application/ Date of Interview field greater than or equal TODAY(), and then in it's loop, for each of those Jobs, it will display all RFGs belonging to it as determined in the View "related-posts" (hidden link)
Do you want this to return only the RFG that are similar to the ones of the current post where the Parent View is inserted?
That is not possible, in both cases, because it will query distant posts fields (so, it will query fields of another post type while listing a specific post type). But maybe there is a chance.
See, you could add a (query or front end)( search for Fields in RFGs in this view for example:
hidden link
Since you list all RFGs of All jobs found, and now want to restrict that list to the ones similar to the RFG's of the Job where the View is shown, you would need to compare in the query, the Custom Field in the RFG, against the Custom Field in the RFG of the Post where the view will be inserted to.
That could be done by adding the query filter to the the view and telling it to listen to the ShortCode attributes.
Then in the parent view, use the $current_page to get the field value of the current page where the view is inserted to, to receive that RFG's
But the current page will not be the RFG, it will be it's parent post, and hence we would need a View, to get the current page^s RFG and pass that to the View as shortcode attribute, but this won't work with many RFG's as returned results passed to the query.
Unfortunately I see no solution for this in this scenario
I will test if I can find some other solution, where the goal would be, to display RFGs that are similar (lets say, have the same value for a given field) across many posts.
I will then update you here with what I find (I am relatively sure there is no viable solution for this, but I will confirm)