How to iterate pages with a specific tag from another section

I have 2 sections I want to cross-link automatically: posts and wiki

in each wiki page I want:
for page in .Section.Posts:

if or .Params.symbol in page.tags:
\<a href= page.Permalink > page.title </a>

This is what I got so far:

<h2> Read more detailed posts about {{}}:</h2>
  {{ $pages := (union (where .Pages "tags" .Params.symbol) (where .Pages "tags" ) }}
  {{- range intersect (where .Pages "Section" "posts") $pages}}
    <li>  <a href="{{.RelPermalink}}"> {{.title}}</a> </li>

Iterating syntax in Hugo is very hard, I appreciate any advice or resource to help understand it (any more than reading the docs and videos).

This doesn’t answer your question, but you probably want to check out related content. It does what you want, and is possibly faster at build time. :slight_smile: