Need filter on value of a field in a specific node of different content type in Views I have content type pick_topic, containing an entity ref taxonomy field topic. There is one node of this type. It defines the topic of the month. Several views blocks and pages need to only display content nodes with this topic value. Example: taxonomy topics: dogs, cats, rabbits.

The user (site manager) edits this node and selects a topic from dropdown. Say it is dogs. My view of another content type, articles, contains topic field. How can I filter the view based on the pick_topic topic value equal to the article topic field value, in this case dogs?
I don't know of a way to do this all in the interface, but if you add a contextual filter in the view for the topic field on the article content type, you can programmatically set the contextual argument in hook_views_pre_view.

First, load your pick_topic node like:

\Drupal::service('entity_type.manager')-&gt;getStorage('node')-&gt;load(PICK_TOPIC_NID);


Then load the field value. See How do I access a field value for an entity (e.g. node) object?

Then set the view argument.

function MY_MODULE_views_pre_view(ViewExecutable $view, $display_id, array &amp;$args) {
  if ($view-&gt;id() == 'MY_VIEW_ID' &amp;&amp; $view-&gt;current_display == 'MY_VIEW_DISPLAY_ID') {
    // Load your pick topic node.
    // Load your pick topic field value.
    // Set the view argument, term id.
    args[] = $my_pick_topic_field_value_tid;
  }
}