I'm a bit confused by the way that Craft now handles Matrix blocks. I've read the documentation a few times and I'm still not sure if I have it.
Here's what I have:
{% set myMatrixBlockQuery = craft.matrixBlocks().ownerId(4).type('block__artists') %}
{% set matrixBlocks = myMatrixBlockQuery.all() %}
{% for block in matrixBlocks %}
<li>{{ block.id }} / {{ block.artistName }}</li>
{% endfor %}
But all that gets output is:
8 /
9 /
10 /
Where 10
(etc) is the ID of the block. It's not outputting the artistName despite that field existing and having content. Is my query wrong?
{{ dump(block) }}
inside your loop?