Hi @wowflak,
Sorry for my previous response and thank you for explaining everything. I have fully understood your issues. The reason why your query is not valid because when we try to run this query.
$data=array(
'post_type' => 'releases',
'meta_key' => 'artist',
'orderby' => 'meta_value',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'artist',
'value' => '{{dc:post:id}}',
'compare' => '==',
'type' => 'NUMERIC'
)
),
);
It will generate this string:
post_type=releases&meta_key=artist&orderby=meta_value&order=DESC&meta_query%5B0%5D%5Bkey%5D=artist&meta_query%5B0%5D%5Bvalue%5D=%7B%7Bdc%3Apost%3Aid%7D%7D&meta_query%5B0%5D%5Bcompare%5D=%3D%3D&meta_query%5B0%5D%5Btype%5D=NUMERIC
Then the value {{dc:post:id}} is no longer a valid Dynamic Content because it was replaced with this one %7B%7Bdc%3Apost%3Aid%7D%7D. That being said, we need to encode the query string first then once we are done creating our query string that’s the time we add the Dynamic Content in the right place.
The correct Query String should look like this one:
post_type=releases&meta_key=artist&orderby=meta_value&order=DESC&meta_query%5B0%5D%5Bkey%5D=artist&meta_query%5B0%5D%5Bvalue%5D={{dc:post:id}}&meta_query%5B0%5D%5Bcompare%5D=%3D%3D&meta_query%5B0%5D%5Btype%5D=NUMERIC
Please note I change the {{dc:acf:post_field field=“artist”}} to {{dc:post:id}} because that’s the right Dynamic Content to get the ID of the current Artists.
You can check again the test I have made at the bottom of this page: https://frlstesting.wpengine.com/artists/starset/
Hope that helps.