Hi,
Let me first explain the structure of my site, to explain what I am trying to accomplish.
(a) I have a custom post type called INVESTMENT VIEW
(b) This is related to another custom post type called COMPANY.
(c) The COMPANY custom post type has a custom taxonomy called SECTOR attached to it.
For example, Apple could be a COMPANY linked to the Technology Sector. If I were to create an investment view for Apple -- it would be in the custom post type INVESTMENT VIEW, which gets related to the COMPANY - Apple via a post relationship.
What I have done till now, is create a view of the INVESTMENT VIEW post type, that displays information from the related COMPANY post, specifically the company name and the sector. This is easy to do, since while choosing a field in the view output editor, I have the option to do a post selection (for the investment view - company relationship) to show both the company and the associated sector linked to this investment view.
For example, this is the code in the output editor which is correctly displaying the sector for each investment view (i.e. the view is correctly showing the sector of the related company):
[wpv-post-taxonomy type="sector" item="@company-investment-view.parent"]
What I am struggling with, which was quite easy to do in Drupal (via drupal relationships in views) is to pass the SECTOR (that I am displaying correctly) as a parameter for the Custom search in the view. I want to be able to show all investment views linked to a particular sector (via the company relationship). I tried multiple ways, but there does not seem to be an intutive way to get this done.
Any help on the same would be much appreciated.