Thank you for your answer, but actually the id is returned, I can even print it. BTW on custom post archive property $connected->posts does NOT returns empty. This behavior is very confusing.
Hi, I do have the same need. How can I implement it?
Hi, thanks for your quick reply. Unfortunately, the error is still there.