Mostly in blogging site, we need to create block view with the related content list based on taxonomy terms associated with the current node. It sounds complex but there are few simple steps which we can take to create this block. An example of the related content block you can see on this blog page titled "Related Content". If it's not showing that means there is no content matching with the term of this blog node. These are the step for creating related content block view:
- Create block type view.
- In format, options select "HTML list" to show content as a list.
- Now select field you want to show in the list, best option is to select only title field.
- In Contextual Filters option add filters “Content: Has taxonomy term ID (with depth)” and “Content: Has taxonomy term ID depth modifier”.
- Configuration on this filter: WHEN THE FILTER VALUE IS NOT AVAILABLE - Provide default value - Type: Taxonomy Term ID from URL - under that, check the box "Load default filter from node page, that's good for related taxonomy blocks." - now under vocabularies check the boxes of the taxonomies you want to be involved here.
- Now you need to add the second filter in order to exclude the current node from the list by adding "Content: Nid" contextual filter.
- Set the ‘WHEN THE FILTER VALUE IS NOT AVAILABLE’ to ‘Provide default value’.
- Set the default argument type to ‘Content ID from URL’.
- Go to “MORE” at the bottom, and check the “Exclude” box to make sure this node is not shown in the list.
- Move “Content: Nid” filter to the top position.
- Save the view and add this block to block list to a particular region.