The "Your Artist Collection" field group is configured for only one post, the Post 1 post-constructor, which is the publication type of the constructor.
I donβt understand why all the code is needed? Simply create a different field group for each message, which requires a separate field group and a separate rule for each.
Ok, sorry, I understand the problem now, and I recreated the problem with a local installation.
In the line of code below you are looking for post_parent, but I think you should look for the identifier.
I changed this:
$post_parent = $post->post_parent;
:
$post_parent = $post->ID;
and it works for me.
source share