I have 2 content types. Question and Answer. Answers hava a entity reference field and contain reference to certain questions. Now, I want to build a view with listing of questions and number of answers to each question.
So, my view has one field title. Another field title with set up relationship (to show related answers). Filter is set up to show only published nodes and node types of Question and Answer. Query setings - distinct.
Result: I get all questions with all answers. Like this:
Problem: Only Questions get filtered by using filter - published nodes. The referenced nodes - answers are not filtered and are shown all published as well as unpublished.
What would be the best approach to show ONLY published both answers and questions? Thank you