I have two Views displaying different custom fields of a case study. The first View (Hero) works correctly, but the second View (Credits) is displaying data from a different post instead of the current case study. The Views are configured the same way, so I don’t understand why one works and the other doesn’t.
Solution:
In the Template section of the Credits View, use the shortcode [types field='credits' item='$current_page'] to ensure the field pulls data from the current page instead of another post. This issue occurs because when a View is placed directly on a page, it does not automatically inherit the post context like it would in a post template. Generating the shortcode via the Fields and Views button ensures the correct attributes are included.