I'm not sure I follow exactly what you are aiming to do, but on the specific question of how to pass a post ID value to a View to use in a Query Filter, you can add shortcode attributes to the View shortcode and then specify the attribute in the Query Filter for the value source.
Thanks for your response. I'm aware that when a View queries posts, it's possible to pass one or more Post IDs via a shortcode attribute ([wpv-view name="whatever" ids="56,23"]). But I'm querying a *taxonomy*, and the Query Filter doesn't include the same options to pass a Post ID via a shortcode attribute. To be clear, I can pass Term IDs, but not Post IDs. See the attached screenshot.
To clarify what I'm trying to do, I am iterating through a set of posts and trying to output the taxonomy terms of a custom taxonomy of each post. I am very aware that I can use the WordPress function get_the_terms() to do this, but I was trying to minimize the amount of custom PHP and author the loop in the Toolset interface, so I created a View to query the taxonomy terms. The issue is that unlike with get_the_terms(), I can't limit the View to a specific post. Does that make sense?
> Is it a case where you want to display taxonomy of the current post being displayed?
No, this is not the case. I've created a regular WP page and am using a shortcode to run some custom PHP code that retrieves some custom posts and then displays them. The "current post" is that regular page and does not contain the taxonomy information; that resides with the custom posts.
> Are you iterating through the posts using a view?
No, I am not. I am iterating through them via a foreach loop in PHP.
I understand what you're trying to achieve now. In such a case our view doesn't provide an open filter for you to manually specify the post ID to display the taxonomies.
Thanks for your response, Shane. I'd love to see this as a feature request, if possible. It will allow people to retrieve taxonomy terms for a given post ID or IDs.