In a View for a custom post type, my view loop displays fields from the related posts using those related fields from the Fields and Views interface. I want to add a CSS id containing the Post ID of the related post being displayed, but there is no button for Post ID within the post type I'm displaying. How do I display the current, related Post ID in a View loop?
Thank you for contacting us and I'd be happy to assist.
In the Fields and Views interface, you'll see the option to insert the "Post ID", in the standard WordPress fields.
( example screenshot: post-ID-fields-and-text.png )
From the next screen, you can also select the source of the relationship post type, to use for that ID.
( example screenshot: post-ID-relationship-selection.png )