I want to show entries according to an array.
This is my code:
{% set navsubids = craft.amNav.getNavRaw("hoofdnavigatie", {startFromId:25}) %}
{% set navsubidarray = [] %}
{% for navsubid in navsubids %}
{% set navsubidarray = navsubidarray|merge([navsubid.elementId]) %}
{% endfor %}
{% set navsubidarray = navsubidarray|join(', ') %}
{{ navsubidarray }}<br>
{% for entry in craft.entries.id('{{ navsubidarray }}') %}
{{ entry.title }}<br>
{% endfor %}
The variable gives back that what I need (18, 17, 19, 4, 20, 21, 22, 23)
but the for entry loop isn't returning anything.