Pergunta

I have a view which shows title and an image to the article where an image is uploaded within any post. This is shown through a block in a region.

It looks something like this:-

enter image description here

I show it on top of a landing page of a taxonomy; the landing page of the taxonomy page has all the articles which come under the respective taxonomy. Here lies the problem.

I want the article which is returned by the view to be from the taxonomy which shows it. Right now, an article is returned whichever has an uploaded Featured Image; what I Want is that the view returns an article which has an uploaded image and it belongs to the same category (taxonomy) of which landing page I am opening.

Thanks.

Foi útil?

Solução

Add a Taxonomy Term ID contextual filter to the view. Then choose to provide a default argument, and under type choose Taxonomy Term ID from URL.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top