@PolarRacing maybe I’m wrong, but I thought terms=current
only worked when you’re in a taxonomy term loop already. Whereas in this case, the template is going to be on a post so I don’t think terms=current
gets the terms from the current post.
I think you’d need to create a list of the taxonomy terms on the current post like this:
<List terms>
<Loop type=taxonomy_term taxonomy=area post=current>
<Item><Field name /></Item>
</Loop>
</List>
And then underneath that you could basically do what you’re suggesting where you’re looping through posts, but you reference the list in that terms
parameter instead. Something like this:
<Loop type=location taxonomy=area terms="{Get list=terms}" exclude="{Field id}">
<Field title />
</Loop>
I think that should do it. @tangiblerun I saw that you wrote exclude=current
which might work, but when I check out the docs for the post loop, I’m seeing "exclude
- Exclude by ID or name" without any mention of it accepting a value of current. So if it works that’s cool, but inventing stuff in L&L will often get you in trouble so it’s best to stick to only using tags/attributes/values that are mentioned in the documentation. For example, inventing attributes that aren’t written in the docs (like area=current
) will never work.